LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-04-2020, 07:59 PM   #1
mtdew3q
Member
 
Registered: Mar 2006
Location: the next town over from siberia
Distribution: xubuntu
Posts: 481

Rep: Reputation: 18
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.

thanks for any helpful tips-
roboloki
 
Old 11-05-2020, 12:29 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
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.
 
1 members found this post helpful.
Old 11-05-2020, 10:15 PM   #3
mtdew3q
Member
 
Registered: Mar 2006
Location: the next town over from siberia
Distribution: xubuntu
Posts: 481

Original Poster
Rep: Reputation: 18
Hi all-

I have this linksys router e2500. It doesn't let you configure anything.

Could that be interfering with connecting with ssh if it won't let you change any ports or services or dmz etc?

I mean firewalld is one firewall. As I understand it a router has a built in firewall.

Please let me know if it is possible that my router is interfering.

I don't think it is firewalld. I can ssh on the local host (the server ).

thanks,
robobloki
 
Old 11-05-2020, 10:39 PM   #4
mtdew3q
Member
 
Registered: Mar 2006
Location: the next town over from siberia
Distribution: xubuntu
Posts: 481

Original Poster
Rep: Reputation: 18
Hi all-

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
 
Old 11-05-2020, 11:16 PM   #5
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by mtdew3q View Post
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.
 
Old 11-07-2020, 11:36 AM   #6
mtdew3q
Member
 
Registered: Mar 2006
Location: the next town over from siberia
Distribution: xubuntu
Posts: 481

Original Poster
Rep: Reputation: 18
Hi B-

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.

My connect string : ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no user@127.0.0.1 -p 22

I am not sure why that connect string returns the challenge for the key instead of password..

I tried to pair it down and get a more basic setup. I am just connected to a nat adapter at the moment.

Well, anywho. I stood on my head and banged it against wall long enough for today. I am going to sleep!

thanks,
roboloki
 
Old 11-07-2020, 07:03 PM   #7
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Venting is OK, but to help me find a solution, give me the details that I asked for.
 
1 members found this post helpful.
Old 11-07-2020, 10:10 PM   #8
mtdew3q
Member
 
Registered: Mar 2006
Location: the next town over from siberia
Distribution: xubuntu
Posts: 481

Original Poster
Rep: Reputation: 18
Hi B-

I figured out what is going wrong. Thanks for helping.

I needed to tweak my ssh_config under cygwin.

There are many moving pieces to ssh as I am finding out.

Last night, I studied networking that I needed.

Tonight it will be tweaking the ssh_config.

I am sure I can solve the problem now.

thank, you-
roboloki
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Attempting to get rsync with ssh to work from cygwin client to Linux server vovim Linux - Networking 4 09-23-2015 10:18 AM
exim4 is in Cygwin 32 but not Cygwin 64 - is it an oversight or otherwise? fairch720 Linux - Software 0 08-27-2013 12:45 AM
Could I get rid of Cygwin.dll/Cygwin1.dll in program compiled under Cygwin ? Kunsheng Programming 1 05-17-2009 08:30 PM
Have you ever used cygwin, i've met a problem with the command stat from cygwin andy820303 Linux - Newbie 0 03-11-2009 03:37 AM
Errors, Errors, and more Errors (KDE 3.4.x GUI Errors) Dralnu Linux - Software 2 05-13-2006 08:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration