SSH : Operation timed out

Joined
May 15, 2010
Messages
1
Reaction score
0
Points
1
Hi here !

I come to you with a ssh connection problem. I'm trying to connect to a server located at my work, from a mac book pro under os X from my home.
Je viens vous voir avec un souci de connexion ssh.

I know the server adress, login and password and i can connect to it with putty on a pc at my home also. But on the mac, no success. Ssh stays stuck on connecting and finally gives up with a "operation timed out" message. Note that ping to the server works on the mac.

I checked the firewall of the mac which is noted as NOT activated.
I thought port 22 could be blocked or in use, but by what? I 'm puzzled, as my windows box can connect with putty and not the mac, using the same wifi network.

ssh config file, in the /etc folder (ssh_config) was commented out. I uncommented a few lines like that, and no success at all :

Host *
ForwardAgent no
ForwardX11 no
RhostsRSAAuthentication no
RSAAuthentication yes
PasswordAuthentication yes
HostbasedAuthentication no
GSSAPIAuthentication no
GSSAPIDelegateCredentials no
GSSAPIKeyExchange no
GSSAPITrustDNS no
BatchMode no
CheckHostIP yes
# AddressFamily any
# ConnectTimeout 0
# StrictHostKeyChecking ask
# IdentityFile ~/.ssh/identity
IdentityFile ~/.ssh/id_rsa
# IdentityFile ~/.ssh/id_dsa
Port 22
# Protocol 2,1
# Cipher 3des
# Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
# MACs hmac-md5,hmac-sha1,[email protected],hmac-ripemd160
# EscapeChar ~
# Tunnel no
# TunnelDevice any:any
# PermitLocalCommand no
# VisualHostKey no

I also tried uncommenting all lines after port 22, with no more success.

I would appreciate any help !
 
Joined
Mar 16, 2007
Messages
756
Reaction score
14
Points
18
Are you trying to connect via server name or IP address? If it's the name, maybe you are missing the domain name. e.g. here at work, before adding the domain to my network settings, I wasn't able to just use:

ssh user@server1

instead I used:

ssh [email protected]

Maybe try pinging the server to make sure your MBP can connect to it.
 

rman


Retired Staff
Joined
Dec 24, 2002
Messages
12,637
Reaction score
168
Points
63
Location
Los Angeles, California
Your Mac's Specs
14in MacBook Pro M1 Max 32GB 2TB
did you compare your PC network configuration with your Apple network configuration?
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top