[SOLVED] ssh trouble connecting ip is different than ifconfig in log
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Which distro, including version, are you using and which version of openssh-server are you running?
hosts.allow is tcpd which is from before even ipchains existed. From OpenSSH 6.7 onwards, tcpd (tcpwrappers) support in sshd has been disabled and you'll have to progress to using iptables for filtering.
In addition please explain what you are trying to accomplish.
Are you trying to connect to the host or other virtual machine?
The default settings for host only adapter network is 192.168.56.0/24 and the DHCP is enabled by default. How are you configuring your the network for each machine?
Which distro, including version, are you using and which version of openssh-server are you running?
hosts.allow is tcpd which is from before even ipchains existed. From OpenSSH 6.7 onwards, tcpd (tcpwrappers) support in sshd has been disabled and you'll have to progress to using iptables for filtering.
fedora 25 xfce and openssh 7.4.
many of the tutorials on the web still reference hosts.allow and hosts.deny.
I will have to read up on your tech tip.
I managed to get leafpad to appear on my windows desktop with ssh/x11-forwarding.
In addition please explain what you are trying to accomplish.
Are you trying to connect to the host or other virtual machine?
The default settings for host only adapter network is 192.168.56.0/24 and the DHCP is enabled by default. How are you configuring your the network for each machine?
I ended up using a bridge adapter which is the easiest way. I connected to the virtual machine. I'd like to know if it is possible to do with a host-only or NAT setup for the adapter.
So many guides and tutorials are either out of date or cargo-cult incorrect or out of date material that good ones are hard to find that it's very important to chase down authoritative sources while they are available. Using them puts a stop to guessing.
Were you able to figure out the corresponding iptables rules?
I have a second network adapter set up as NAT for internet surfing. I thought when I read this article and one or two others with this setup I may not need iptable rules. I don't know very much about networking though.
I meant iptables in the context of replacing what you were trying to do with tcpwrappers earlier. If you do not need that, then don't worry about iptables at the moment.
How many network adapters does the VirtualBox guest containing the SSH server (sshd) have?
I meant iptables in the context of replacing what you were trying to do with tcpwrappers earlier. If you do not need that, then don't worry about iptables at the moment.
How many network adapters does the VirtualBox guest containing the SSH server (sshd) have?
It has 2. One is an adapter that uses NAT and the other is the host-only network adapter.
It has 2. One is an adapter that uses NAT and the other is the host-only network adapter.
Your iptables rules will mostly have to be done double, once for each interface. It may be worth a new thread over in Networking when you get that far. But that's for later.
Right now a small but useful step would be to make the SSH server listen only to the guest's host-only network adapter, if that is what you want. For that, lookup the ip address for that adapter and then apply that address to the ListenAddress directive in the guest's sshd_config file. For details, see your version's manual page:
Code:
man sshd_config
If you stop being able to log in, then you have either the wrong address or something wrong with the host-guest routing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.