搜索
您的当前位置:首页正文

SSH配置 + 公钥私钥 + VSCode 远程开发

来源:榕意旅游网

ssh - config

use vscode ssh remote development extension can be more convenient.
C://Users\username.ssh 下新增配置文件 config,格式如下

Host devname
	HostName xxx.xxx.xxx.xxx
	User xxx

以后就可以直接使用ssh devname 连接远程服务器
形同 ssh username@hostname

ssh - 公钥私钥

use git bash console will help a lot, or you will not have a command named ssh-copy-id.

ssh-keygen

ssh-copy-id -i id_rsa.pub username@hostname

then you can login in use ssh devname

VSCode Remote - SSH

Of course, Pycharm Clion IDEA are all OK.

vscode 相比与它们的优点在于轻量,而且在面临写C++这样没有特别好的编辑器的时候,VSCode也是不错的选择。

因篇幅问题不能全部显示,请点此查看更多更全内容

Top