Other gh-pages

Views

References

Adding a new user on linux

And then maybe set the password:

sudo passwd chbrown

Return to the local machine. Copy default local public key to the remote machine:

ssh-copy-id chbrown@remote

Or if you don’t have ssh-copy-id:

# on remote:
mkdir -pm 700 ~/.ssh
touch ~/.ssh/authorized_keys
chmod 644 ~/.ssh/authorized_keys

# on local:
cat ~/.ssh/id_rsa.pub | ssh remote 'cat > ~/.ssh/authorized_keys'

ssh tunneling

commandeffect
ssh -D 5090 dark -NStart Socks proxy to dark on :5090
ssh dark -L 18053:localhost:8053 -NTunnel from outgoing :18053 to dark’s outgoing :8053, and fork to bg
ssh -q -o 'StrictHostKeyChecking no' pinker exitUnquestioningly add pinker’s host key to ~/.ssh/known_hosts and then quit
ssh-copy-id -i local.id_rsa.pub darkCopy the key in local.id_rsa.pub to dark’s ~/.ssh/authorized_keys file
ssh-keygen -t rsaInteractive: create new key (defaults to ~/.ssh/id_rsa{.pub})
sudo ~/src/sshuttle/sshuttle -l 22 -r chbrown@dark:8080 0.0.0.0/0 -vTunnel all connections through dark on port 8080
ssh -t markov 'ssh n004'Connect to n004 via markov

screen

Command Line

flagsdescription
screen-DRattach to existing or start new screen
screen-dmS MySessionstart a detached screen session
screen-r MySessionattach screen session with name MySession

Commands

flagsdescription
ctrl accreate new window
ctrl aAset window name
ctrl awshow all window
ctrl a
3switch to window 3ctrl a
"choose windowctrl a
ctrl aswitch between window
ctrl ad
detach windowctrl a?
helpctrl a[
start copy, move cursor to the copy location,
                    press ENTER, select the chars, press ENTER to copy
                    the selected characters to the buffer |

| ctrl a | ] | paste from buffer | | ctrl a | S | create split screen | | ctrl a | TAB | switch between split screens | | ctrl a | Q | Kill all regions but the current one. | | ctrl a | X | remove active window from split screen | | ctrl a | O | logout active window (disable output) | | ctrl a | I | login active window (enable output) |

Default locations

Firefox GreaseMonkey:

cd ~/Library/Application Support/Firefox/Profiles/*/gm_scripts