User Tools

Site Tools


ssh

Trust host key without /dev/tty

ssh -o StrictHostKeyChecking=no <username>@<server>

SSHGuard

iptables -A INPUT -m multiport -p tcp --destination-ports 22 -j sshguard
iptables-save > /etc/iptables/iptables.rules

SSH Tunnel

Create New Tunnel Account

adduser --shell /usr/sbin/nologin --no-create-home --ingroup sshusers <username>

You may need to run the following command at first time.

addgroup sshusers

Open Local Socks Proxy

ssh <username>@<server> -N -D 7070 -v
plink <server> -N -ssh -2 -P 22 -l <username> -C -D 7070 -v -pw <password>

References:

ssh.txt · Last modified: 2018/05/05 01:44 by felixonmars