Magneto417x Posted July 9, 2017 Posted July 9, 2017 I have been trying to my turtle to connect to my VPS and I just can't get it to work. I go though the entire set-up and when I get on my VPS server and attempt to connect to port 2222 or port 2200 it says connection refused. Please help port 2222 remote port 2200 local port 22
Magneto417x Posted July 9, 2017 Author Posted July 9, 2017 One more thing I also confirmed that when I go to shell on turtle I can ssh in just fine on default port 22 without giving a password so I know the keys are shared properly.
Magneto417x Posted July 9, 2017 Author Posted July 9, 2017 Figured out the issue I had to set port to 22 :-)
Magneto417x Posted July 9, 2017 Author Posted July 9, 2017 I do still have one issue. If I plug in turtle and try to connect it won't work. If I login local on turtle and stop autossh and then unplug it and plug it back it I can connect fine but when I unplug and plug it back it fails to allow connections. It seems if autoshh isn't stop first before unplugging turtle then next time it's plug in it won't work. Thoughts?
spadefist Posted June 7, 2018 Posted June 7, 2018 I have a very similar issue, everything updated and running the latest (as of today). Every time I reboot the turtle, graciously or otherwise, I cannot connect to the ssh session (ssh root@localhost -p 2222) on my remote server. If I ssh into the turtle directly, I can see the autossh service is running and if I stop and restart, I can then connect successfully from remote. Obviously this makes the turtle pretty useless as a remote access device. Also, I note that if I change the config of autossh in the turtle and restart the service, that sometimes (not always), some crud gets added to /etc/config/autossh namely after the last config line, usually something like: ...turtle@remote -p 22'\''' with the \''' being the crud in question. Any ideas? Or is this know bug?
RickS Posted June 13, 2018 Posted June 13, 2018 On 6/7/2018 at 9:45 AM, spadefist said: I have a very similar issue, everything updated and running the latest (as of today). Every time I reboot the turtle, graciously or otherwise, I cannot connect to the ssh session (ssh root@localhost -p 2222) on my remote server. If I ssh into the turtle directly, I can see the autossh service is running and if I stop and restart, I can then connect successfully from remote. Obviously this makes the turtle pretty useless as a remote access device. Also, I note that if I change the config of autossh in the turtle and restart the service, that sometimes (not always), some crud gets added to /etc/config/autossh namely after the last config line, usually something like: ...turtle@remote -p 22'\''' with the \''' being the crud in question. Any ideas? Or is this know bug? I've seen this too, and I'm not sure what to make of it, aside from a bug in the current release. I'm thinking of building my own so I can fix it instead of waiting for a fix to be released.
MikeK Posted June 13, 2018 Posted June 13, 2018 In /etc/turtle/modules/autossh line 67 just add a space between the final quotes: uci set autossh.@autossh[0].ssh="-i /root/.ssh/id_rsa -N -T -R "$autossh_remoteport":localhost:"$autossh_localport" "$autossh_host" -p "$autossh_port" " This might be a dirty fix but it works for me
Jadadog Posted January 31, 2019 Posted January 31, 2019 On 7/9/2017 at 9:27 AM, Magneto417x said: Figured out the issue I had to set port to 22 🙂 so I have port 22 remote port 2222 local port 22 And it's not working have I got something wrong here? just receiving connection refused
Jadadog Posted January 31, 2019 Posted January 31, 2019 never mind I'm an idiot grr was trying to connect to the wrong server
Recommended Posts
Archived
This topic is now archived and is closed to further replies.