Follow

Follow
๐Ÿ‘ฉโ€๐Ÿ’ป | How to login to a server via SSH & VScode or Command Prompt

๐Ÿ‘ฉโ€๐Ÿ’ป | How to login to a server via SSH & VScode or Command Prompt

How to login to a server via SSH & VScode or Command Prompt

River's photo
River
ยทNov 23, 2022ยท

2 min read

Play this article

1 )

Install Visual Studio Code - code.visualstudio.com/download

2 )

Install the "Remote - SSH Extention"

image.png

3 )

Click the small blue icon down in the corner after installation has completed

image.png

4 )

Grab your servers IP and input it followed with root@ (If you don't have root access use the username given to you - Example: river@ip) you may also need to add a port, this can be done by prefixing the IP wih the port - Example: user@0.0.0.0:10025

image.png

You will want to click "Add new SSH host" to append it to a file for easy login next time!

Once you have added it as a host you will want to go to your command palette (CTRL + SHIFT + P) and type SSH until you find the "Remote-SSH: Open SSH configuration file"

image.png

Open the file with the file path C: > Users > User > .ssh > config

You will need to edit the following lines to match

image.png

Press CTRL + S and go back to your little blue icon in the corner and connect to your server!

image.png

If you are still having issues or want to learn about SSH Keys please contact me on Discord: River#0003


Command Prompt

1 )

Open Command Prompt

Type ssh user@ip If you need to append a port use ssh -p 10025 user@ip

image.png


image.png


download.png Written by River

CEO @ AIO Tech Ltd

CEO @ Seven Seas Hosting


Did you find this article valuable?

Support River by becoming a sponsor. Any amount is appreciated!

See recent sponsors |ย Learn more about Hashnode Sponsors
ย 
Share this