Skip to content

Instantly share code, notes, and snippets.

@gsidhu
Created September 4, 2022 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gsidhu/2652fd19a0de63ce82f76d75264c4ca1 to your computer and use it in GitHub Desktop.
Save gsidhu/2652fd19a0de63ce82f76d75264c4ca1 to your computer and use it in GitHub Desktop.
How to set up FTP and SSH on a new machine

Note: These instructions are for my future self.

Assuming you have a remote server with the following details –

IP Address: 192.168.1.1
Username: rockstar
Password: ********

In case you don't remember your remote server's IP address, you can find that out from - (1) the remote server provider (2) the registrar of your domain(s) (3) plugging in your domain on DNS Checker.

Terminal

Enter –

ssh rockstar@192.168.1.1

You'll be asked if you want to save the fingerprint, enter yes. Then use your password to login.

Repeat the proces in future.

Caution: In case you have changed the ssh port number on your remote server, add the -p flag to manually define the port number in Terminal.

Filezilla

Press Cmd + S to open the Site Manager. Add a new site and give it the name you want. Then –

  1. Select the SFTP protocol.
  2. Enter 192.168.1.1 as Hostname and 22 as port number.
  3. Enter your username and password.
  4. Click connect. Add fingerprint to local machine and save password.

In future just press Cmd + S and Enter to connect to your server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment