# 👩‍💻 | How to login to a server via SSH & VScode or Command Prompt

# 1 ) 

> Install Visual Studio Code - https://code.visualstudio.com/download

# 2 ) 

> Install the "[Remote - SSH Extention](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh)"


![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1669189583940/mJmJTVKUO.png align="left")


# 3 )

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


![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1669189785672/Wx_lyxThF.png align="left")

# 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](https://cdn.hashnode.com/res/hashnode/image/upload/v1669189968538/BzVZAAwHM.png align="left")

> 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](https://cdn.hashnode.com/res/hashnode/image/upload/v1669190216427/XJWjW2gQ7.png align="left")

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

> You will need to edit the following lines to match


![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1669190525847/uUKaXcwuw.png align="left")

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


![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1669190591810/UkivDaOtX.png align="left")

> 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](https://cdn.hashnode.com/res/hashnode/image/upload/v1669190752890/sk-2TntdE.png align="left")

---


![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1669190775842/6rcmUybIc.png align="left")

---


[![download.png](https://i.postimg.cc/02354Q4h/download.png)](https://postimg.cc/BXTGLq4C) Written by [River](https://riverdev.wtf)

CEO @ [AIO Tech Ltd](https://aiodiscord.xyz)

CEO @ [Seven Seas Hosting](https://id.sevenseas.cloud)

---




