#Need some help with VirtualBox and putty and 2x RHEL9 VMs.

1 messages · Page 1 of 1 (latest)

undone pagoda
#

I built 2 new VMs and installed RHEL9. Everything good so far. I can ssh from one VM to the other. But PuTTy just don't wanna work. I'm at my wit's end.
I don't know what its problem is.
When I did the installation I checked the box for "Allow SSH with root", but even if I try to ssh with user1 it won't work.
I checked the sshd_config and I changed the PermitRootLogin to yes, but still it doesn't work (yes, I restarted sshd.service. I rebooted both VMs as well)..

Any ideas?
I can ssh with PuTTy to my older RHEL8 VMs just fine..
I even copied one of the putty sessions settings and changed the IP address, but still nada.

foggy helm
#

So, what's needed is not "doesn't work", but the responses you get that says it's "not working".

Second, with the VM window itself, watch the logs for auth or syslog, depending, and try to ssh, and see what the logs themselves are saying, and report those here as well.

undone pagoda
#

I just noticed something else. I can ping my RHEL8 VMs from windows, but not the RHEL9

foggy helm
#

Yep. Sounds like...... firewalld!

undone pagoda
#

I tried disabling it as well

#

Didn't work

#

Gonna check the logs now

foggy helm
#

Well, you know what I said about "didn't work"

undone pagoda
#

I get a timeout only when I try to ssh from putty

#

back to the logs now..

foggy helm
#

Soo, yeah, sounds like firewall. iptables -L -n might also prove useful.,

undone pagoda
#

To disable firewall I only have to systemctl stop firewalld.service, right?

#

(and disable it if I want to reboot)

#

Fuck this. I give up.

#

I don't care anymore. I've lost 2 precious hours from studying for dealing with this shit

#

Who knows what they changed again in RHEL9 so that putty (or mobaxterm) doesn't work.

foggy helm
#

Well, keeping in mind, just simply stopping firewalld alone, defaults to blocking all traffic. Hence why I asked for iptables output which you never provided. Way to go. 🙂

undone pagoda
#

Sorry for not getting back to you, but I am in a rush finishing the book cause I've got 2 more workshops coming up and I can't waste time troubleshooting 😦
I built both VMs according to the book. Probably the author forgot something.
The book is based on RHEL 9.1 and I am using RHEL 9.2.

undone pagoda
#

I'm not familiar with iptables (yet).
Is this output ok?