randy3k / remote-atom

rmate for atom
https://atom.io/packages/remote-atom
MIT License
85 stars 16 forks source link

Installation & SSH #33

Open DAV9854 opened 8 years ago

DAV9854 commented 8 years ago

I have followed the directions for installation and have tried to ssh into my remote server but nothing is happening.

It says that the connection being made is through port 22, but I changed 52968 to anothe rport number , yet it keeps forwarding through 22. Why is this?

randy3k commented 8 years ago

Could you post the whole error/warning message?

DAV9854 commented 8 years ago

That is the entire error/warning message. It simply says it "cannot reach the host through port 22". Can you give me more precise instructions regarding the installation of this package. I really need this to work, it would make my life ALOT easier!

randy3k commented 8 years ago

Can you connect to the server just by ssh? It seems like the ssh server is not listening in the default port 22.

DAV9854 commented 8 years ago

yeah it only can use a specific port number, how do I change it?

DAV9854 commented 8 years ago

as in, how do I make it so it connects through my specified port?

randy3k commented 8 years ago

what command did you use to connect to your server? whatever you use, you just have to add -R 52698:localhost:52698 to it.

DAV9854 commented 8 years ago

i did that exactly, but what is the 52968 referring to? i want to connect to a specific port, can you give me an example of connecting to the remote host using 52698:localhost:52698?

randy3k commented 8 years ago

As indicated in README, 52698 is a remote port which is begin forward to your local machine. And Atom is listening on localhost:52698 in order to retrieve the file.

ssh -R 52698:localhost:52698 user@example.com

If you ssh server is not running on port 22, your may also need the -p flag.