User Tools

Site Tools


ssh

Differences

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

Link to this comparison view

ssh [2017/01/05 06:17] (current)
felixonmars created
Line 1: Line 1:
 +==== Trust host key without /dev/tty ====
 +<​code>​
 +ssh -o StrictHostKeyChecking=no <​username>​@<​server>​
 +</​code>​
 +
 +==== SSH Tunnel ====
 +
 +=== Create New Tunnel Account ===
 +<​code>​
 +adduser --shell /​usr/​sbin/​nologin --no-create-home --ingroup sshusers <​username>​
 +</​code>​
 +You may need to run the following command at first time.
 +<​code>​
 +addgroup sshusers
 +</​code>​
 +
 +=== Open Local Socks Proxy ===
 +<​code>​
 +ssh <​username>​@<​server>​ -N -D 7070 -v
 +</​code>​
 +
 +=== Open Local Socks Proxy (The Plink Way) ===
 +<​code>​
 +plink <​server>​ -N -ssh -2 -P 22 -l <​username>​ -C -D 7070 -v -pw <​password>​
 +</​code>​
 +
 +References:
 +
 +  * http://​stackoverflow.com/​a/​15007556/​646735
  
ssh.txt ยท Last modified: 2017/01/05 06:17 by felixonmars