博客
关于我
两步实现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/

    你可能感兴趣的文章
    poj1061 - 同余方程,二元一次不定方程
    查看>>
    Qt笔记——SQLite再探
    查看>>
    poj1068Parencodings
    查看>>
    poj1182(带权并查集)
    查看>>
    POJ1182(带权并查集)
    查看>>
    Qt笔记——Qt初探、PyQt5和Qt5
    查看>>
    poj1190生日蛋糕
    查看>>
    POJ1218 HDU1337 ZOJ1350 UVALive2557 THE DRUNK JAILER
    查看>>
    poj1222 EXTENDED LIGHTS OUT(gauss)
    查看>>
    POJ1240 m叉树
    查看>>
    Poj1328--Radar Installation(区间选点)
    查看>>
    POJ1384Piggy-Bank(DP)
    查看>>
    POJ1417 True Liars —— 并查集 + DP
    查看>>
    Poj1459 Power Network 预流推进
    查看>>
    POJ1502(MPI Maelstrom)
    查看>>
    poj1568 Find the Winning Move[极大极小搜索+alpha-beta剪枝]
    查看>>
    poj1730 - Perfect Pth Powers(完全平方数)(水题)
    查看>>
    poj1753——Flip Game
    查看>>
    poj1936 假期计划第一水
    查看>>
    poj1958-汉诺四塔问题(三种方法)
    查看>>