VSCode REMOTE SSH

在這裏插入圖片描述

登錄服務器

1.安裝 Remote Development
在這裏插入圖片描述

2.添加遠程主機
在這裏插入圖片描述

3.輸入user@host 然後回車確認
在這裏插入圖片描述

4.選擇文件記錄信息 可以通過Remote-SSH: Open Configuration File...來打開編輯
在這裏插入圖片描述

5.Remote-SSh:Connect to Host...連接遠程服務器
在這裏插入圖片描述

6.選擇主機名稱,剛纔已經配置過了
在這裏插入圖片描述

7.選擇服務器的系統類型

在這裏插入圖片描述

8.填寫登錄密碼

9.成功
在這裏插入圖片描述

在這裏插入圖片描述

退出的登錄

close remote connection

管理插件(Extensions)

在這裏插入圖片描述

也可以使用命令安裝Remote: Install Local Extensions in
在這裏插入圖片描述

配置免密登錄

ssh 通道配置

https://zhuanlan.zhihu.com/p/101684799
https://www.cnblogs.com/piperck/p/6200439.html

文件同步

https://code.visualstudio.com/docs/remote/ssh#_working-with-local-tools
Mount the remote filesystem using SSHFS.
Sync files to/from the remote host to your local machine using rsync.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章