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

    你可能感兴趣的文章
    npm错误 gyp错误 vs版本不对 msvs_version不兼容
    查看>>
    npm错误Error: Cannot find module ‘postcss-loader‘
    查看>>
    npm,yarn,cnpm 的区别
    查看>>
    NPOI
    查看>>
    NPOI之Excel——合并单元格、设置样式、输入公式
    查看>>
    NPOI初级教程
    查看>>
    NPOI利用多任务模式分批写入多个Excel
    查看>>
    NPOI在Excel中插入图片
    查看>>
    NPOI将某个程序段耗时插入Excel
    查看>>
    NPOI格式设置
    查看>>
    NPOI设置单元格格式
    查看>>
    Npp删除选中行的Macro录制方式
    查看>>
    NR,NF,FNR
    查看>>
    nrf24l01+arduino
    查看>>
    nrf开发笔记一开发软件
    查看>>
    nrm —— 快速切换 NPM 源 (附带测速功能)
    查看>>
    nrm报错 [ERR_INVALID_ARG_TYPE]
    查看>>
    NS3 IP首部校验和
    查看>>
    NSDateFormatter的替代方法
    查看>>
    NSError 的使用方法
    查看>>