vscode访问服务器文件
1.install remote ssh
in vscode
2.click remote explorer
and select ssh targets
3.click remote ssh configure
or press F1
and input remote-ssh:Open configuration file
4.selete path ~/.ssh/config
,and modify config file
if you dont have rsa ,please generate keys before
1 | //optional |
1 | Host alias |
- Host alias–>your remote server name
- hostName–>server ip
- User–>login username
- IdentityFile–>private key path
- RSAAuthentication–>optional
- PubkeyAuthentication–>optional
- PasswordAuthentication–>no password login
5.login without password ready