colab-ssh icon indicating copy to clipboard operation
colab-ssh copied to clipboard

[alternative solution] Allow ssh access through ssh-key directly through launch_ssh_cloudflared()

Open pvmilk opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. This is a not problem, but typing password every times is a bit bothersome.

Describe the solution you'd like Allow public key to be specified directly in launch_ssh_cloudflared(), as an alternative to password.

And I think it can be cone easily by,

pubkey = 'ssh-rsa INSERT PUBLIC KEY HERE'
with open('/root/.ssh/authorized_keys', 'w') as text_file:
    print('{}'.format(pubkey), file=text_file

Describe alternatives you've considered I think this could be an easier solution than having to copy them in the git repository and call init_git_cloudflared()

pvmilk avatar Mar 10 '21 18:03 pvmilk

Hello @pvmilk, good to see you around here :) Welcome to the colab-ssh community!

I agree that this could make things a bit easier. Since the latest changes, the password has to be typed each time the user chooses a folder on VSCode. I will look into it in the next few days. If anyone wants to help, they are absolutely most welcome.

Have a great rest of the day!

WassimBenzarti avatar Mar 10 '21 18:03 WassimBenzarti