VarjuOrg

Linux / Windows – what’s the difference…

How to add publickey to Unix SSH when VNC like console lacks of copy/paste functionality

1. Copy Your publickey to a file and add it to some webpage (for ex. pubkey.txt and added to tomain example.com)
2. Log on to console as user needed
3. Get remote file to under Your account:

curl 'https://example.com/pubkey.txt' > tempfile

4. Add it to authorized_keys file:

cat tempfile >> .ssh/authorized_keys

 

Leave a Reply

Your email address will not be published.