SSH - Connection Refused
I'm new to the whole SSH thing, and I can't get it to work. I've googled left and right, but haven't found any answers.
I am trying to get SSH to work just between two Ubuntu desktops on a local LAN. sshd is running, and I use firestarter and have port 22 open to SSH, and everything else (like pinging) between the two computers works. But when I try: ssh 192.168.1.101 or any variation thereof, I get the message: ssh: connect to host 192.168.1.101 port 22: Connection refused and exactly the same when I try from the other computer to this one. Any help would be appreciated. -eminence |
i had faced the same problem on redhat9. May be it can help you. the cause was due to keys.
#cd /root/.ssh #vi known_hosts *delete everyting on that file #service sshd restart this should work |
the main reason may be that the public keys generated by the server has changed for some reason in the client. this may happen when u have reinstalled the ssh server.this changes the ssh public keys and shows a mismatch in the client. for that remove the file ".known_hosts" in "~/.ssh/" where ~ is the home directory of the user by which u r trying to login. now retryin ssh to the server. this may show a message that a new key has been recieved. type yes . this brings the ssh session into existence. if this worked for u click on the thanks button. bye happy sshing ...
vimal |
u have to make shore that sshd is running on the remote computer.
and the command u type is correct if u have the user with the same name as the user on your computer. if we assume that I have a user called ipolit on the remote machine the command is ssh ipolit@192.168.1.101 |
ssh: connect to host 192.168.1.101 port 22: Connection refused
The above error looks more like sshd is not running on host 192.168.0.101. Another possibility is your firewall rules are blocking ssh connections. FWIW: I can re-create this error by simply trying to ssh to my XP box: Code:
[scowles@excelsior ~]$ ping -c1 192.168.9.21 |
Probably do not have sshd
Fire up your synaptic package manager and do a search for openssh-server.
Make sure that it is installed. Next, make sure you do not have a firewall enabled to block SSH. If you have the ssh server installed, you might want to use netstat to ensure the it is listening on port 22. I've got a few Ubuntu boxes, and as I remember it the server was not installed by default. MrKnisely |
Thanks charon79m, that was the problem. start-stop-daemon reported sshd to be running, but the server package wasn't installed.
And thanks everyone else for the quick responses. |
Good to hear you are up and running!
MrKnisely |
Quote:
Thank You! |
hey guys
I have the same problem , and when I enter the following command line everything is ok Code:
ssh 100.248.140.44 Code:
scp -r admin@100.72.232.207:/_backup_/ admin@100.248.140.44:/_backup_/ Code:
ssh: connect to host 100.248.140.44 port 22: Connection refused I searched a lot and it got me headache ,but still i couldn't find a soloution . please answer in codes so i can try them the guy that says he found his solution didn't mention how to install server package ssh I'm using centos 5.5 thanks |
Quote:
|
hmm
I change both sides' ports to 22 and it worked and its now asking for second password but after hitting the password of target server it returns another error : Code:
# scp -r admin@100.72.232.207:/_backup_/ admin@100.248.140.44:/_backup_/ this ssh commands and limitations sucks any other comments on the above error ?! |
This issue solved :
setting ssh enabled on both sides setting the permission of files to 777 or 666 and all done |
I had the same problem a while ago, make sure that outgoing ssh port 22 is not being blocked, you can try the online test at http://ssh.icannotconnect.com/ it should say "Allowed"
|
connection refused [error11n]
while i am trying to allow access port to my instance the follow error is occurred.
Can any one help me out.. euca$ euca-authorize default -P tcp -p 22 -s 0.0.0.0/0 [Errno 111] Connection refused |
All times are GMT -5. The time now is 01:00 PM. |