Can't ssh my instance. Permission denied (publickey)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Eucalyptus |
Incomplete
|
Undecided
|
graziano obertelli | ||
portable OpenSSH |
New
|
Undecided
|
Unassigned |
Bug Description
Hi all:
I got running the Ubuntu Karmic Koala image from the store in my private cloud (I use UEC). When I try to connect it via ssh I got the next error: "Permission denied (public key)". If I try through putty, it reaches the instance and prompts me for a username, but right after inputting anything this message comes up "Disconnected: No supported authentication methods available".
I have run ssh -v and this is the result:
OpenSSH_5.1p1 Debian-6ubuntu2, OpenSSL 0.9.8g 19 Oct 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to myInstanceIP [myInstanceIP ] port 22.
debug1: Connection established.
debug1: identity file /home/cediant/
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.1p1 Debian-6ubuntu2
debug1: match: OpenSSH_5.1p1 Debian-6ubuntu2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_
debug1: expecting SSH2_MSG_
debug1: SSH2_MSG_
debug1: expecting SSH2_MSG_
debug1: Host 'myInstanceIP ' is known and matches the RSA host key.
debug1: Found key in /home/cediant/
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_
debug1: SSH2_MSG_
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /home/cediant/
debug1: read PEM private key done: type RSA
debug1: Authentications that can continue: publickey
debug1: No more authentication methods to try.
Permission denied (publickey).
Looking on the internet I found a post saying that you won't ever be able to ssh your instance because it doesn't have your public key. Could it be tha?
In case it may be relevant I also post the etc/ssh/
# Package generated configuration file
# See the sshd(8) manpage for details
# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/
HostKey /etc/ssh/
#Privilege Separation is turned on for security
UsePrivilegeSep
# Lifetime and size of ephemeral version 1 server key
KeyRegeneration
ServerKeyBits 768
# Logging
SyslogFacility AUTH
LogLevel INFO
# Authentication:
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes
RSAAuthentication yes
PubkeyAuthentic
#AuthorizedKeysFile %h/.ssh/
# Don't read the user's ~/.rhosts and ~/.shosts files
IgnoreRhosts yes
# For this to work you will also need host keys in /etc/ssh_
RhostsRSAAuthen
# similar for protocol version 2
HostbasedAuthen
# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthen
#IgnoreUserKnow
# To enable empty passwords, change to yes (NOT RECOMMENDED)
PermitEmptyPass
# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeRespon
# Change to no to disable tunnelled clear text passwords
#PasswordAuthen
# Kerberos options
#KerberosAuthen
#KerberosGetAFS
#KerberosOrLoca
#KerberosTicket
# GSSAPI options
#GSSAPIAuthenti
#GSSAPICleanupC
X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
#UseLogin no
#MaxStartups 10:30:60
#Banner /etc/issue.net
# Allow client to pass locale environment variables
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/
UsePAM yes
Does anything occur to you?
Thanks
Elena.
description: | updated |
Changed in eucalyptus: | |
assignee: | nobody → Daniel Nurmi (nurmi) |
You should have an id_rsa and id_rsa.pub file on your client computer and your server should have your key in their authorized keys list. Could you please verify that this is the case?