配置公钥

  • 执行ssh-******即可生成SSH钥匙,一路回车即可
  • 执行ssh-copy-id -p port [email protected],可以让远程服务器记住我们的公钥
    linux基础学习(09)-配置别名:
    输入ssh -p port [email protected] ,太麻烦,配置个别名。在.ssh目录下创建个config文件,内容为:
    Host cenos
    HostName 192.168.50.192
    user root
    port 22
    保存,再次输入ssh cenos即可连接成功。
  • 拷贝文件到别名服务器:
    linux基础学习(09)
    注:config文件权限必须设置为600,否则会报badowner
    linux基础学习(09)

相关文章:

  • 2021-10-25
  • 2021-08-21
  • 2022-01-12
  • 2021-06-16
  • 2021-08-18
  • 2021-08-10
猜你喜欢
  • 2021-04-11
  • 2021-08-06
  • 2021-10-23
  • 2022-01-13
  • 2021-12-13
相关资源
相似解决方案