【linux】remote-ssh配置(vscode云开发)
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
服务器重装系统,重置密码之后
本地使用 ssh命令登录出现
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
解决办法
ssh-keygen -R [host]
接下来就可以使用ssh登录了
配置免密登录
- 生成密钥对(使用powershell或git bash)
ssh-keygen
以上命令会在c盘的用户目录下生成.ssh文件夹,包含公钥和私钥
- 服务器绑定密钥
1.将本地密钥添加至服务器
选择【使用已有公钥】,把.ssh文件夹下的id_rsa.pub粘进来
2.绑定密钥,绑定完机器需要关机一次
- vscode配置远程登录
1.下载ssh-remote插件
2.下载安装完成后侧边栏会多出一个【远程资源管理器】
2.添加远程机器,根据输入框内提示键入
3.选择config文件位置,跟刚才的密钥同级就行
4.连接远程机器
此时打开的终端便是服务器的终端
接下来去配置linux开发环境!




A beautiful web dashboard for Linux
最近提交(Master分支:5 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
所有评论(0)