1.下載Windows Terminal
需要安裝vs2019
其他要求和配置還有美化查看github
2.點擊設置
// Make changes here to the tencent profile.
"guid": "{CF8097CF-4A3C-4E48-A0B3-3822E0E4B812}",
"name": "ShawnTencent",
"commandline": "ssh root@XXX.XXX.XXX -p22",
"cursorColor": "#CCFF33",
"hidden": false,
"icon": "F:\\Data\\Icon\\tea.png",
"fontSize": 8
3.登錄遠程服務器
在本機使用git-bash 生成公鑰和私鑰
ssh-keygen
cd ~/.ssh
- 上傳公鑰文件
spc
命令或者 其他上傳文件exe(xftp等等)
cat id_rsa.pub >> authorized_keys
拼接公鑰rm id_rsa.pub
刪除上傳的公鑰chmod 600 authorized_keys
chmod 700 ~/.ssh
設置一下文件的權限cat /etc/ssh/sshd_config
查看ssh配置 確認參數是否正確service sshd restart
重啟ssh服務
4.新建選項卡