[SOLVED] ssh client in cygwin and server in fedora time out errors
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.
ssh client in cygwin and server in fedora time out errors
I am trying to connect on fedora 32 via ssh using a host only adapter. I use cygwin mintty as the ssh client and vbox fedora guest to run the ssh server.
If I try to connect to host like this from the server I get prompted to check the key:
ssh serverusername@serverlistenIPaddress -p 22 ( from server )
From the client:
ssh -vvv serverusername@serverlistenipaddress -p 22 (from client)
OpenSSH_8.4p1, OpenSSL 1.1.1f 31 Mar 2020
debug2: resolve_canonicalize: hostname 192.168.1.125 is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/user/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/user/.ssh/known_hosts2'
debug2: ssh_connect_direct
debug1: Connecting to 192.168.1.25 [192.168.1.25] port 22.
debug1: connect to address 192.168.1.125 port 22: Connection timed out
ssh: connect to host 192.168.1.125 port 22: Connection timed out
There is something about ssh that always gives me time out errors. I use firewalld. I thought it might block things and cause a timeout.
I suppose 192.168.1.25 is a typo and 192.168.1.125 is correct.
Connection timed out indicates that the firewall blocks port 22. Use firewall-cmd --list-ports and firewall-cmd --list-services on the server to confirm.
Alternatively, something is wrong with your VirtualBox configuration.
Yeah. I don't know beans about networking but my theory is I got punked by this router.
Cisco used to let you mess with ports on this model. When Belkin bought linksys that went away.
I have another router I can check out but not tonight.
I am glad I have this spare router because when you live in horse and buggy town they don't exactly sell routers here.
A router with no firewall will blindly pass data between 2 different networks.
I am guessing that is not the case with this thing.
Have a very cool night. I will report back on a separate thread hopefully before the weekend.
roboloki
I don't think it is firewalld. I can ssh on the local host (the server ).
I am confused about your setup. Can you please state from where to where your ssh succeeds, and from where to where it fails?
If you set up host-only networking, I would expect that the VM is only accessible from the host, and that the router doesn't even know that the VM exists.
This SSH is crazy. I make changes and they don't work. I don't know if there is some kind of poisoned cache like a browser.
The latest is no matter what settings I use it won't let me use passwords instead of keys. It keeps asking for the keys even though I shut that off in my sshd_config.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.