(Created page with "== Connect with ssh to server == In vscode add the ssh extension and then add host to the .ssh config file usually found in the user folder Use the following syntax to add the host to the config file:<syntaxhighlight lang="bash"> Host <hostname - ip address / dns> HostName <Hostname> IdentityFile "<path to ssh key>" User <username> </syntaxhighlight>") |
No edit summary |
||
| Line 3: | Line 3: | ||
Use the following syntax to add the host to the config file:<syntaxhighlight lang="bash"> | Use the following syntax to add the host to the config file:<syntaxhighlight lang="bash"> | ||
Host < | Host <name for host in vscone> | ||
HostName <Hostname> | HostName <Hostname / ip address> | ||
IdentityFile "<path to ssh key>" | IdentityFile "<path to ssh key>" | ||
User <username> | User <username> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 11:40, 11 September 2024
Connect with ssh to server
In vscode add the ssh extension and then add host to the .ssh config file usually found in the user folder
Use the following syntax to add the host to the config file:
Host <name for host in vscone>
HostName <Hostname / ip address>
IdentityFile "<path to ssh key>"
User <username>