Hi.
I am trying (via a script) to get the router to connect to an external server via SSH, without success.
Is there anything obvious I need to do to get this to work?
Here is the ssh command.
ssh -T ${PORT:+ -p $PORT}${KEY:+ -i $KEY} “${USER}@${SERVER}”
Yes, I did specify values for the port and server etc.
All variables should be wrapped in curlies and quoted so expansion works in all cases. This was a bug in the startvpn script causing VPN files with spaces to not work correctly.
If you are SSH’ing OUT of the router to a publicly accessible server you dont need to open a port - only for SSH’ing INTO the router.
I am logging into a remote server so assumed the port I specify is for that (just as when you use a VPN server, it has a port number? eg. 443, 1194 etc.).