|
|
#1 |
|
SSH connection refused
Hi,
I use Mac OS X version 10.7.5 and my software is up to date. Here is my problem: I tried to set ssh on my iMac. I am pretty sure that I am doing it OK since I have done this on my MacBook Pro, my girlfriend's iMac and it works fine there. But on my iMac when I type the same command in X11, that is: ssh localhost I get the following error: ssh: connect to host localhost port 22: Connection refused No matter what I do: ssh andre@192.168.2.18 ssh andre@localhost I always get the same error message. Looks like ssh is working based on the (connect to host localhost port 22) of the error message but, on the other hand, I get the same message even if I turn off ssh by unchecking the Remote Login check box. Any idea? Thanks André |
|
|
|
0
|
|
|
#2 | |
|
Quote:
Code:
ssh -vvv localhost |
||
|
|
0
|
|
|
#3 | |
|
Quote:
Here is the result iMac-de-Andre:~ andre$ ssh -vvv localhostI compared my /etc/ssh_config to the one on my MacBook Pro (on which ssh is working fine) and they are the same. |
||
|
|
0
|
|
|
#4 | |
|
Quote:
Code:
ssh -vvv localhost |
||
|
|
0
|
|
|
#5 |
|
Yes I have enabled Remote Login. If I disable it and run the ssh command I get the same error message. Looks like the enabling does not do its job!
|
|
|
|
0
|
|
|
#6 | |
|
Quote:
Code:
sudo launchctl unload -w /System/Library/LaunchDaemons/ssh.plist Code:
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist Code:
ssh -v localhost Code:
sudo launchctl list | grep "sshd" Code:
46427 - com.openssh.sshd |
||
|
|
0
|
|
|
#7 | |
|
Quote:
Code:
- 0 com.openssh.sshd |
||
|
|
0
|
|
|
#8 | |
|
Quote:
Have you modified /etc/sshd_config (the sshd configuration file) at all? Perhaps someone who knows more about sshd can join in. |
||
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 02:53 AM.







Linear Mode
