How to add RSA key to authorized_keys file?

后端 未结 5 1250
后悔当初
后悔当初 2021-01-29 23:06

I\'ve created an RSA public key and I want to add that to authorized_keys file, but there is no such file in my Ubuntu 11.10 machine.

How can I add the key

5条回答
  •  春和景丽
    2021-01-29 23:43

    >ssh user@serverip -p portnumber 
    >sudo bash (if user does not have bash shell else skip this line)
    >cd /home/user/.ssh
    >echo ssh_rsa...this is the key >> authorized_keys
    

提交回复
热议问题