Archive for November, 2010

Top and useful ssh tips

1. copy ssh key to remote host
ssh-copy-id user@remote_host

2 map the tunnel the remote host 80 port to local host port 2001
ssh -N -L2001:localhost:80 remote_host
# now we can use localhost:2001 to reach remote_host 80

3. compare the local file and remote file
ssh user@host cat /path/to/remotefile | diff /path/to/localfile –

4. jump point to unreachable_host
ssh -t reachable_host ssh unreachable_host
Read the rest of this entry »

No Comments