Commands SSH


Enable ssh with password

nano /etc/ssh/sshd_config


# Find in text
PasswordAuthentication yes
sudo systemctl restart ssh.service

Create an ssh tunnel on a specific port

ssh -L 8080:localhost:80 user@remote_ip

Create an ssh tunnel on forwading a remote

On my host 81.X.X.X i want to access 192.X.X.X:8006

ssh -L 8006:192.X.X.X:8006 user@81.X.X.X.X