VS Code无法远程ubuntu

①windows下cmd中执行命令:

ssh-keygen -t rsa -C "[email protected]"

②ubuntu 下bash 命令

ssh-keygen -t rsa -C "[email protected]"

③cat id_rsa.pub >> ~/.ssh/authorized_keys

C:\Users\Administrator\AppData\Roaming\Code\User\settings.json

编辑更改为

{
    "editor.fontSize": 18,
    "cmake.configureOnOpen": true,
    "explorer.confirmDelete": true,
    "remote.SSH.useLocalServer": true,
    "remote.SSH.useExecServer": true,
    "remote.SSH.showLoginTerminal": true
}

你可能感兴趣的:(ubuntu,数据库,服务器)