shell//make sure .ssh/ directory exists and set it as the current directory. mkdir ~/.ssh cd ~/.ssh ssh-keygen
Then just use this command to add your public key to remote host machine.
shellssh-copy-id -i ~/.ssh/id_rsa.pub [username]@[IP address]
本文作者:Maxwell
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 CC BY-NC 4.0 许可协议。转载请注明出处!