Wiki - README‎ > ‎Computers‎ > ‎

SSH

ssh client config tricks [link]

fuse: bad mount point - transport endpoint is not connected [link]
ps -A | grep sshfs
sudo kill -9 $pid
sudo umount -l /mnt/foo
# mount again

list open ssh tunnels
sudo lsof -i -n | grep ssh

openssh host keys (server identification)
/etc/ssh
regenerate openssh host keys [link]

ssh alias
$ cat ~/.ssh/config
Host aliasname
Hostname some.host.address.com
User username
Port 888

$ ssh aliasname

keep ssh session alive  (there are risks!!)
$ echo "ServerAliveInterval 5" >> /etc/ssh/ssh_config

tunnel web and dns through ssh (link)
ssh -D 8080 -fN user@server

keygen
local$ ssh-keygen -t dsa
local$ cat ~/.ssh/id_dsa.pub >> (remote)~/.ssh/authorized_keys
remote$ ln -s authorized_keys authorized_keys2


aoeu
Comments