Isaac Sloan - Useful SSH Server Conf Tricks
Banner700

Useful SSH Server Conf Tricks

Turning password login off

Edit /etc/ssh/sshd_conf
ChallengeResponseAuthentication no
PasswordAuthentication no
UsePAM no
Restart ssh

sudo service ssh restart

Turn on password login

ChallengeResponseAuthentication yes
PasswordAuthentication yes
UsePAM yes
Restart ssh

Copy and pasting from remote vim

1. Edit /etc/ssh/ssh_config
ForwardAgent yes
ForwardX11 yes
ForwardX11Trusted yes
2. Edit /etc/ssh/sshd_config
X11Forwarding yes
X11DisplayOffset 10
3. Restart ssh

sudo service ssh restart

Turning off password requirement for sudo.

1. Edit /etc/sudoers
youruser ALL=(ALL) NOPASSWD:ALL
2. Your done.
April 24, 2016
rubyvimubuntux11
comments powered by Disqus