博客
关于我
两步实现ssh免密码登录,一步实现配置服务器的别名
阅读量:72 次
发布时间:2019-02-26

本文共 803 字,大约阅读时间需要 2 分钟。

?????????SSH??????

??

???PC?WSL?????????Linux???????SSH??????


????????

???PC?????????????

ssh-keygen

????????????????????????????PC???????????.ssh?????????????id_rsa?????id_rsa.pub?


????????????

???PC???????????????????????

ssh-copy-id -p port user@remote

???port?????????user??????????remote?????IP??????

?????????????id_rsa.pub????~/.ssh/authorized_keys????


????

SSH??????????????????????

  • ??????????????????????????????????
  • ??????????????????????????????????

  • ????????????

    ??

    ??SSH?????????????????user@172.xx.xx.xx -p xx??????????????????????????

    ??

    ???PC???~/.ssh/config????????????????????????????

    Host myserver    HostName 172.xx.xx.xx    User user    Port 22

    ?myserver?????????????????????????

    ssh myserver

    ?????????????????????????????????????????????????


    ??????????????SSH???????????????????????

    转载地址:http://rrcz.baihongyu.com/

    你可能感兴趣的文章
    Python 安装程序:“写入文件 C:\Python27\pythonw.exe 时出错“
    查看>>
    Python 安装避坑指南:从入门到进阶
    查看>>
    Python 安装配置详解
    查看>>
    python 实现儿童算术游戏
    查看>>
    python 实现字符串转整型
    查看>>
    Python 实现定时任务的八种方案!
    查看>>
    python 实现将RGBA 转换为RGB
    查看>>
    python字符串与url编码的转换
    查看>>
    Python 实现自动化测试 dubbo 协议接口
    查看>>
    python编程基础之十六
    查看>>
    python字符串input输入_Python input()函数:获取用户输入的字符串
    查看>>
    python 对json数据读取及保存与读取,对dump,dumps,load,loads的理解
    查看>>
    Python 对mysql数据库的操作
    查看>>
    Python 对象数据库列表
    查看>>
    Python 导入requests报错No module named requests
    查看>>
    Python 将JPEG图片批量改成jpg并删除JPEG图片
    查看>>
    python 将函数加到列表中进行调用
    查看>>
    python 将图片与字符串相互转换
    查看>>
    Python 嵌套字典全面指南
    查看>>
    Python 工具v简介
    查看>>