You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
colab ssh doesn't work if identity isn't added to ssh-agent #233
$ ssh-add ~/.ssh/id_ed25519
Enter passphrase for /home/once/.ssh/id_ed25519:
Identity added: /home/once/.ssh/id_ed25519 (once@once)
$ uv run colab ssh
[colab] Using unique session 'a9683e'.
/content# exit
logout
$ ssh-agent -k; eval "$(ssh-agent -s)"
$ uv run colab ssh
[colab] Using unique session 'a9683e'.
root@colab-runtime: Permission denied (publickey).
$ uv run colab ssh -i ~/.ssh/id_ed25519.pub
[colab] Using unique session 'a9683e'.
Enter passphrase for key '/home/once/.ssh/id_ed25519':
/content#
before #225 this breaks also on passing identity file
$ uv run colab ssh -i ~/.ssh/id_ed25519
[colab] Using unique session 'a9683e'.
[colab] failed to derive public key from /home/once/.ssh/id_ed25519: Command '['ssh-keygen', '-y', '-f', '/home/once/.ssh/id_ed25519']' returned non-zero exit status 255.
And noticed it was only offering my id_rsa key which happened because I have a ~/.ssh/config which only lists one IdentityFile. I added IdentityFile ~/.ssh/id_ed25519 to ~/.ssh/config and it works now.
Activity
sethtroisi commentedon Nov 10, 2026
I debugged with
And noticed it was only offering my id_rsa key which happened because I have a ~/.ssh/config which only lists one IdentityFile. I added
IdentityFile ~/.ssh/id_ed25519to ~/.ssh/config and it works now.