SSH Authentication refused: bad ownership or modes for directory
I just spent 30 minutes trying to get login via public key working on a new server, and here’s a few tips that I wish I knew earlier : ...
I just spent 30 minutes trying to get login via public key working on a new server, and here’s a few tips that I wish I knew earlier : ...
To change the message displayed before login, edit /etc/ssh/sshd_config : $ sudo vi /etc/ssh/sshd_config and add (or uncomment) the line Banner /etc/banner ...
Dreamhost sends you an email by default every time you run a cron job. To turn this off, run $ crontab -e and add this line to the top of your cron file: MAILTO=""
Ubuntu Enterprise 6 doesn’t seem to install sshd out-of-the-box. To install : $ sudo apt-get install openssh-server
Just add the following line to @/etc/ssh_config@ (on the machine you’re SSHing from) : ServerAliveInterval 60 Next time you SSH of SFTP you’ll be sending ‘keepalive’ packets every 60 seconds. No more Connection reset by peer! If you have root access on the remote server, you can also set ClientAliveInterval 60 in @/etc/sshd_config@ to achieve the same effect.