User Tools

Site Tools


linux:ssh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
linux:ssh [2013/09/07 07:33] – external edit 127.0.0.1linux:ssh [2014/12/20 05:57] percy
Line 7: Line 7:
 Forward the local port 8080 to the remote server 8080,so you can visit the local server via the remote server. Forward the local port 8080 to the remote server 8080,so you can visit the local server via the remote server.
   ssh -R :8080:localhost:8080 -Nf root@vps.pjq.me -p 2222   ssh -R :8080:localhost:8080 -Nf root@vps.pjq.me -p 2222
 +  
 +  
 +  
 +  ====== ssh auto login ======
 +  
 +  http://riny.net/2014/git-ssh-key/
 +  
 +====== mult ssh keys ======
 +  
 +  touch ~/.ssh/config
 +Apps-iMac:.ssh pengjianqing$ cat config
 +<code>
 +Host ef.pjq.me
 +    IdentityFile ~/.ssh/digitalocean_rsa
 +    User root
 +</code>
 +
/var/www/dokuwiki/wiki/data/pages/linux/ssh.txt · Last modified: 2017/12/15 13:22 by percy