Permission Denied (publickey)

96 views
Skip to first unread message

Alex Jun Chung

unread,
Jul 18, 2024, 2:35:26 PM7/18/24
to cloudlab-users
Hello,

I've just started a new experiment on the Utah cluster and tried to ssh using the SSH Command given in the List View (I also have a public key uploaded in my account), but I can't get access and keep getting the permission denied (publickey) error. Would love some help! https://www.cloudlab.us/status.php?uuid=921ae3e5-4480-11ef-9f39-e4434b2381fc#

Leigh Stoller

unread,
Jul 18, 2024, 3:20:53 PM7/18/24
to cloudla...@googlegroups.com

> I've just started a new experiment on the Utah cluster and tried to ssh using the SSH Command given in the List View (I also have a public key uploaded in my account), but I can't get access and keep getting the permission denied (publickey) error. Would love some help! https://www.cloudlab.us/status.php?uuid=921ae3e5-4480-11ef-9f39-e4434b2381fc#

Hi. Looks like you were logged in for 97 minutes this morning. So at
one point you could log in, right? Can you tell what has changed since
then? Also, you could send us the log of an `ssh -v` which turns
on debugging.

Thanks.
Leigh

Alex Jun Chung

unread,
Jul 18, 2024, 3:39:00 PM7/18/24
to cloudlab-users
Thanks for getting back to me! I can get into the shell in the Cloudlabs page if that's what you mean but I can't get past the ssh command - problem is below. 
 ssh al...@ms1114.utah.cloudlab.us
 al...@ms1114.utah.cloudlab.us: Permission denied (publickey).
 alexc@node0:~$ ssh -v
 usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]
            [-b bind_address] [-c cipher_spec] [-D [bind_address:]port]
            [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11]
            [-i identity_file] [-J [user@]host[:port]] [-L address]
            [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
            [-Q query_option] [-R address] [-S ctl_path] [-W host:port]
            [-w local_tun[:remote_tun]] destination [command [argument ...]]

Leigh Stoller

unread,
Jul 18, 2024, 3:44:05 PM7/18/24
to cloudla...@googlegroups.com

> Thanks for getting back to me! I can get into the shell in the Cloudlabs page if that's what you mean but I can't get past the ssh command - problem is below.
> ssh al...@ms1114.utah.cloudlab.us
> al...@ms1114.utah.cloudlab.us: Permission denied (publickey).
> alexc@node0:~$ ssh -v
> usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]
> [-b bind_address] [-c cipher_spec] [-D [bind_address:]port]
> [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11]
> [-i identity_file] [-J [user@]host[:port]] [-L address]
> [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
> [-Q query_option] [-R address] [-S ctl_path] [-W host:port]
> [-w local_tun[:remote_tun]] destination [command [argument ...]]

Hi. I think you want: ssh -v al...@ms1114.utah.cloudlab.us <mailto:al...@ms1114.utah.cloudlab.us>
But more interesting is that you are currently logged in, as 10 minutes ago.
Are you sharing your account with another person?

Leigh

Alex Jun Chung

unread,
Jul 18, 2024, 6:27:29 PM7/18/24
to cloudlab-users
Sorry about that, ssh -v result is below. Also, that was still my login, it's just me using the account.

alexc@node0:~$ ssh -v al...@ms1114.utah.cloudlab.us
OpenSSH_8.9p1 Ubuntu-3ubuntu0.10, OpenSSL 3.0.2 15 Mar 2022
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug1: Connecting to ms1114.utah.cloudlab.us [128.110.217.174] port 22.
debug1: Connection established.
debug1: identity file /users/alexc/.ssh/id_rsa type -1
debug1: identity file /users/alexc/.ssh/id_rsa-cert type -1
debug1: identity file /users/alexc/.ssh/id_ecdsa type -1
debug1: identity file /users/alexc/.ssh/id_ecdsa-cert type -1
debug1: identity file /users/alexc/.ssh/id_ecdsa_sk type -1
debug1: identity file /users/alexc/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /users/alexc/.ssh/id_ed25519 type -1
debug1: identity file /users/alexc/.ssh/id_ed25519-cert type -1
debug1: identity file /users/alexc/.ssh/id_ed25519_sk type -1
debug1: identity file /users/alexc/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /users/alexc/.ssh/id_xmss type -1
debug1: identity file /users/alexc/.ssh/id_xmss-cert type -1
debug1: identity file /users/alexc/.ssh/id_dsa type -1
debug1: identity file /users/alexc/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.10
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.9p1 Ubuntu-3ubuntu0.10
debug1: compat_banner: match: OpenSSH_8.9p1 Ubuntu-3ubuntu0.10 pat OpenSSH* compat 0x04000000
debug1: Authenticating to ms1114.utah.cloudlab.us:22 as 'alexc'
debug1: load_hostkeys: fopen /users/alexc/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20...@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20...@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:bB4TBZMIEhrtJN2mb/Mzn8fvSRUBUC+UamxqkhCU7HA
debug1: load_hostkeys: fopen /users/alexc/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: Host 'ms1114.utah.cloudlab.us' is known and matches the ECDSA host key.
debug1: Found key in /users/alexc/.ssh/known_hosts:1
debug1: ssh_packet_send2_wrapped: resetting send seqnr 3
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: ssh_packet_read_poll2: resetting read seqnr 3
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: /users/alexc/.ssh/id_rsa
debug1: Will attempt key: /users/alexc/.ssh/id_ecdsa
debug1: Will attempt key: /users/alexc/.ssh/id_ecdsa_sk
debug1: Will attempt key: /users/alexc/.ssh/id_ed25519
debug1: Will attempt key: /users/alexc/.ssh/id_ed25519_sk
debug1: Will attempt key: /users/alexc/.ssh/id_xmss
debug1: Will attempt key: /users/alexc/.ssh/id_dsa
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-...@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sh...@openssh.com,webauthn-sk-ecd...@openssh.com>
debug1: kex_input_ext_info: publickey...@openssh.com=<0>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /users/alexc/.ssh/id_rsa
debug1: Trying private key: /users/alexc/.ssh/id_ecdsa
debug1: Trying private key: /users/alexc/.ssh/id_ecdsa_sk
debug1: Trying private key: /users/alexc/.ssh/id_ed25519
debug1: Trying private key: /users/alexc/.ssh/id_ed25519_sk
debug1: Trying private key: /users/alexc/.ssh/id_xmss
debug1: Trying private key: /users/alexc/.ssh/id_dsa
debug1: No more authentication methods to try.
al...@ms1114.utah.cloudlab.us: Permission denied (publickey).

Mike Hibler

unread,
Jul 18, 2024, 7:04:09 PM7/18/24
to cloudla...@googlegroups.com
So what you show below is you attempting to login to node0 from node0.
I am guessing you are using the browser-based shell to login to node0
and then in that shell, you are trying to login to the same node.

Is there some reason you are trying to login like this?
> --
> You received this message because you are subscribed to the Google Groups
> "cloudlab-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to cloudlab-user...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/
> cloudlab-users/55a27c8c-1474-4edf-a919-74dca63801bdn%40googlegroups.com.

Alex Jun Chung

unread,
Jul 18, 2024, 7:07:23 PM7/18/24
to cloudlab-users
Hey Mike, thanks for the response! I just wasn't fundamentally understanding what I was looking at in terms of the node shell and thought I needed to get somewhere from there but realize that I'm already there. Everything is working well, appreciate your help :) 

Wei Hao

unread,
Jul 22, 2024, 9:16:04 AM7/22/24
to cloudla...@googlegroups.com
Hi Leigh,

its all solved. thanks for your help.

Wei

Reply all
Reply to author
Forward
0 new messages