Archive

Archive for the ‘SSH’ Category

How to Fix “SSH Public Key Authentication Failed”

June 3rd, 2009 Masao 1 comment

If your SSH public key authentication is failing with errors like this:

$ ssh -vvv myhost.com
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /home/kitamura/.ssh/id_dsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply

…try these permissions on the server:

server$ chmod go-w ~/    (same as 755)
server$ chmod 700 ~/.ssh
server$ chmod 600 ~/.ssh/authorized_keys

more troubleshooting tips

Categories: Linux, SSH, Troubleshooting Tags:

ssh_exchange_identification: Connection closed by remote host

February 5th, 2009 Masao No comments

On the destination server, remove the known_hosts file:

rm ~/.ssh/known_hosts

Also, try this in your /etc/hosts.allow file

/etc/hosts.allow:
SSHD: ALL

Categories: Linux, SSH, Troubleshooting Tags:

How to Automatically Start Pageant with Private Keys in Windows

December 17th, 2008 Masao No comments
  1. In the Startup folder in the startup menu, right-click and create a New -> Shortcut.
  2. Browse to your pageant.exe file.
  3. Add the full path to your private key enclosed with quotes.
  4. Save the shortcut.

“c:\program files\putty\pageant.exe” “c:\documents and settings\esumbar\pka-putty\mykey.ppk”

Categories: SSH, Windows Tags:

How to keep SSH sessions alive

November 30th, 2008 Masao No comments

Edit your ssh_config file like this:

/etc/ssh/ssh_config

ServerAliveInterval 30

This will cause your SSH client to send a keep alive ping every 30 seconds to the server.

Categories: Linux, SSH Tags: