randy3k / remote-atom

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

Using remote-atom with ssh on an different port than 22? #3

Closed janstieler closed 9 years ago

janstieler commented 9 years ago

Hi, I have an Raspberry Pi as an server in my network where the websites are hostet which I will work on with remote-atom. The SSH is working on another port than 22 what have I do to connect? I testet some ways to call it with my port but nothing worked. Like ssh -R 52698:localhost:52698 xxx@raspberrypi:32342

BR

randy3k commented 9 years ago

with the option -p?

 ssh -R 52698:localhost:52698 -p 32342  xxx@raspberrypi

i am not sure

janstieler commented 9 years ago

Hi, okay that sounds logical :). Now I get the message ` Warning: remote port forwarding failed for listen port 52698

First I'm new in linux and I don't know which port here: 52698:localhost:52698 is for?

randy3k commented 9 years ago

52698:localhost:52698 maps a remote port 52698 to a local port 52698. It seems that 52698 is being used in the remote machine, you could trying changing it to other port. But then, you have to use the port option of rmate.

janstieler commented 9 years ago

Hi, thank you very much. I restart all my machines and than everythink worked fine :)