LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 10-24-2007, 04:10 AM   #16
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985

ok, well run a tcpdump on the server side and then try to connect. are you seeing the syn's coming in?
 
Old 10-24-2007, 07:53 AM   #17
lene
LQ Newbie
 
Registered: Aug 2007
Posts: 13

Original Poster
Rep: Reputation: 0
now we connected 2 hosts directly, via cross cable and everything is working!
Perhaps some problem with router, have you any guess?
there is just only one router, and it doesnt have any special restrictions on type of traffic, but its rather strange coz ping takes quite long time to reply, and i do not observe any SYN packets in tcpdump when i try to connect via ssh...
what can be the problem?
other hing is that usually you can connect using ip or dname.
when i try to connect to host 1 using its dname its ok and with IP its also ok, but from host 1 to host 2 its problem of IP and dname cannot be resolved as well: no route to host, though i specified it in dns table...
may be i need some more packages to download ?

Last edited by lene; 10-24-2007 at 09:30 AM.
 
Old 11-01-2007, 11:02 AM   #18
weisso5
Member
 
Registered: Oct 2007
Location: New York City
Distribution: Gentoo, FC
Posts: 133

Rep: Reputation: 16
Hey guys,
I am experiencing the same problem on FC7. The quick work around is change the sshd config file to port 21, restart sshd, boom back into the machine. Now i am able to troubleshoot why port 22 is being used by another application. I have a feeling that it was an update to a package, but i am not completely sure.
 
Old 11-02-2007, 02:51 AM   #19
lene
LQ Newbie
 
Registered: Aug 2007
Posts: 13

Original Poster
Rep: Reputation: 0
No, now im able to log in without password!
It was router problem, im not sure what exactly it was because the ssh, telnet traffic was enabled there, but i just changed the router it it was ok!
 
Old 02-04-2008, 05:33 AM   #20
rm22
LQ Newbie
 
Registered: May 2006
Posts: 14

Rep: Reputation: 0
Question I have a problem that i can't solved

hi

mu ssh don't work in my network, i have access to all other Pc and i can ssh any other pc, but when i like to ssh my pc, it give me the following error:
ssh: connect to host 192.168.x.x port 22: No route to host
i desactivated the firewall and the Linux SE, my linux is Centos 5.1. i tried to ping my self but i can not do anything, my iptables contains the port 22 with whool access. is any one have a try?
 
Old 02-04-2008, 06:03 AM   #21
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
rm22, please don't hijack other threads. if you have a problem, please start your own thread.
 
Old 02-07-2008, 01:21 PM   #22
lene
LQ Newbie
 
Registered: Aug 2007
Posts: 13

Original Poster
Rep: Reputation: 0
again funny problem! well
i can ssh from computer A to computer B, using just public keys (no passphrase and no password), and execute some commands.
now i decided to create a script that would do the same things - so log into computer B and execute all commands that i have to do manually. Sooo the problem is that i always get denied if i try to do it via bash!
may be i have to change some settings in sshd_config or ssh_d?
Please can somebody clarify?

Thanks
 
Old 02-09-2008, 11:39 AM   #23
shafty023
Member
 
Registered: Oct 2007
Distribution: OSX
Posts: 248

Rep: Reputation: 31
no there should be no reason to have to change anything in sshd_config or ssh_config. If it works from the command line it should work within a script.
What error are you getting? How is it denying you? I need more details of the error you're getting.
 
  


Reply

Tags
ssh


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
ssh: connection to host port: 22: Connection timed out lost connection cucolin@ Linux - Server 4 11-22-2011 06:15 AM
ssh connection refused - trying to set up ssh server at home openSauce Linux - Server 10 10-18-2007 04:38 PM
Internet connection timeout on Fedora Core 5 using USB connection mike1111 Linux - Networking 0 07-23-2006 09:44 PM
wireless connection ok with knoppix dvd , no connection with installed fedora 4 docharmony Linux - Wireless Networking 2 11-27-2005 04:33 PM
ssh in fedora: connection refused zwanzig Linux - Networking 8 06-11-2004 04:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 02:06 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