将VS和ubuntu建立联系

Ubuntu中安装openssh服务

用来使VScode中使用ssh远程操作Ubuntu开发

sudo apt-get install openssh-server

启动命令

sudo systemctl start ssh

查询IP

ifconfig

不被识别

安装net-tools

sudo apt-get install net-tools

查询用户名

whoami

 

posted @ 2022-06-18 15:46  hu-  阅读(117)  评论(0)    收藏  举报