I want to start using SSH instead of FTP, but I am clueless when it comes to SSH keys.
I'd like to use a Gulp command to transfer my files (as I do now with FTP). I've found a good amount of NPM packages that do this. However, none explain how to actually set up SSH keys on my remote shared (LAMP) server and on my local machine (MacOS).
Would anyone know how to set this up? All the tutorials I've found deal with setting up the node.js package, not the SSH keys themselves.
Update with additional information
- The server is Linux. It is a cheap shared LAMP stack server running CPanel
- I am able to only access the server via CPanel and FileZilla FTP (but not SFTP)
- The output of running
ssh -i ~/.ssh/id_rsa firstname.lastname@example.org -vvvis as follows:
OpenSSH_7.9p1, LibreSSL 2.7.3 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 48: Applying options for * debug1: Connecting to mysite.com port 22. ssh: connect to host mysite.com port 22: Operation timed out
- Thinking it may be a firewall issue, I have tested with multiple ISPs but have gotten the same problem.
- I tried running the
netstat -ntlp | grep sshcommand on the Terminal that sits within the CPanel GUI (I don't know how else I could run this) but it did not recognise the