本文共 806 字,大约阅读时间需要 2 分钟。
???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/