gumb wrote:
I'm very new to SSH so I have a few questions that will be obvious to many of you. I've been following through the guide at https://en.opensuse.org/SDB:Configure_openSSH which is rather outdated but the basics are still relevant.
So until now I've succeeded in connecting between machines on the same network, browsing and copying files remotely, launching YaST in ncurses mode to do remote updates, etc. All fine.
Sounds good.
I now want to connect to a machine on another network (in another country).
It is no different than connecting to one on yourlocal network.
I realize that I've probably fallen at the first hurdle, since although I configured some basics on that remote machine, I never added a line to hosts.allow with the address of my computer here at home, and hosts.deny is set to refuse ALL other connections.
Using tcpwrappers is pretty oldfashioned, I would say. There's no need.
Presumably, since I therefore currently have no access at all, I'll have to speak to the user of that remote machine and have them log in as root and add the relevant line to the hosts.allow file?
The remote machine needs to be open for connections on port 22 (the default for ssh). The rest should not matter.
Related to that, whilst the remote user's IP address is dynamic and their ISP charges a fee to switch to static, would I get around that by associating their domain name to their connection with reverse DNS?
You can get around that by using a dynamic DNS which updates a record whenever your IP changes. See. e.g. http://www.dns24.ch/
And then how do I specify which machine at their end, behind their router, my SSH command goes to? Until now I've only been specifying local addresses, e.g. 192.168.0.10.
Ah, the remote machine is behind a NAT'ing router? Then you need port forwarding on the router to forward port 22 to the machine you want to talk to.
Is this even how it works? I cannot find anything relating to that in any other SSH articles or guides I've googled for, which makes me think the concept is different.
It isn't really SSH related, it's the same issue for any service you want to access behind a NAT'ing router.
Is the machine effectively specified by the port number I assign, meaning I should assign different port numbers for every device?
Yup. In fact, you want to access multiple machines over SSH, you will need multiple port numbers. -- Per Jessen, Zürich (26.2°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org