From A, set up a pipe for sending data from A to B
a@A: ssh -v -N -L 2223:127.0.0.1:2222 b@B
To test it, first open a listener on B
#!/usr/bin/env python3 | |
import argparse | |
import textwrap | |
import subprocess | |
import os | |
import datetime | |
#import pdb | |
#import random | |
import time |
From machine A, user-A
does an ssh
into th eaccount user-B
on server B
for a terminal session.
In the course of that session, it would be convenient to copy some data to A
's clipboard,
without using mouse to drag and click. Example use cases:
cat
files content into local clipboard. C.f., cat | xsel -i -b
or cat | xclip -i -selection b
import yaml | |
#import pdb | |
import sys | |
import subprocess | |
import pprint | |
fn_mdin = "./mdext.yml" | |
fn_mdcfgtmp = "./tmp/mdext-CFG.yml" | |
fn_scr="./call-pymd.out" |
#!/bin/bash | |
# | |
# craigphicks copyright 2019 - MIT license | |
# see https://github.com/craigphicks/privca | |
set -u | |
Existing_CA_CN="" | |
function _get_CA_CN { |
#!/bin/bash | |
# craigphicks 2019 | |
set -u | |
function CreateCertificateAuthority { | |
if [[ $# -ne 2 ]] ; then | |
echo "two args only: CA common name, CA org name" | |
exit 1 | |
fi | |
CA_CN=${1} |
PasswordSafe database format description version 3.31 | |
----------------------------------------------------- | |
Copyright (c) 2003-2016 Rony Shapiro <ronys@pwsafe.org>. | |
All rights reserved. Use of the code is allowed under the Artistic | |
License terms, as specified in the LICENSE file distributed with this | |
code, or available from | |
http://www.opensource.org/licenses/artistic-license-2.0.php | |
#!/usr/bin/env python3 | |
import os | |
import sys | |
import subprocess | |
s = "" | |
s += "---- begin args ----\n" | |
for i in range(0,len( sys.argv )): | |
s+= "argv[" + str(i) + "]:" + str(sys.argv[i]) +"\n" |