vscode远程ssh配置解释器,docker容器内的也行

vscode远程ssh配置解释器,docker容器内的也行,第1张

vscode远程ssh配置解释器,docker容器内的也行 1 如果是容器添加ssh服务,开启容器的话添加两个映射端口22,8888
apt-get update
apt-get install vim -y
apt-get install openssh-server -y

vim /etc/ssh/sshd_config
添加PermitRootLogin yes
添加UsePAM no
开启port 22等设置
保存

passwd root
输入密码

service ssh start
2 vscode中安装remote-ssh,ctrl+shift+p搜索remote-ssh,contect 3 打开远程服务器的工程目录,搜索python:选择解释器,添加远程解释器

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/5480194.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-12-12
下一篇2022-12-12

发表评论

登录后才能评论

评论列表(0条)

    保存