The steps outlined in this guide can be used to successfully connect to your server via SSH or SFTP. This access allows you to manage files securely and perform various server operations efficiently.
Prerequisites
- Access to your server's IP address.
- Your SSH username and password or SSH key.
- A terminal application (Terminal for macOS/Linux, PowerShell for Windows).
Connecting to Your Server via SSH
To log in to your server using SSH on macOS or Linux, follow these steps:
Using Password Authentication
- Open a Terminal session.
- Run the following command:
ssh user@192.155.3.33
Replace user
with your SSH username and 192.155.3.33
with your server's IP address.
Using SSH Keys and Custom Ports
If you need to specify a different path for your SSH key or connect via a non-standard SSH port, use the following command:
ssh -p port -i /path/to/ssh-key user@IP
Replace port
with the port number, /path/to/ssh-key
with the file path to your private SSH key, user
with your username, and IP
with your server's IP address. For example:
ssh -p 2222 -i /Users/example/.ssh/id_ed25519 user@192.155.3.33
Using SFTP with a Dedicated IP Address
If you have a dedicated IP address associated with your cPanel account, you can log in to SFTP using your cPanel username. For FTP, you must use the full username format (account@example_domain.com
).
Connecting to SFTP
Here are examples of how to connect using SFTP:
Using Shared cPanel IP
sftp user@example_domain.com
Using a Dedicated Account IP
sftp -o BindAddress=$dedicatedIP user@example_domain.com
Replace $dedicatedIP
with the dedicated IP address of your cPanel account.
See How To Use FTP Clients To Connect To Your Server
Did something look off? Or maybe you've got a killer idea to make this article even better? Don't be shy—give us a shout! We're always up for improvement. Feeling creative? If you're itching to write something awesome, we're all ears! You can send your article ideas straight to our editorial team. We love fresh perspectives. Send us an email.