Unable to connect to remote servers using SSH after adjusting network settings
0
votes
2
answers
125
views
I recently had to clear some network related settings and preferences in order to get online at an airport using a captive hotspot. This was done because the login window was not opening in Safari or any other browser. I tried using http://captive.apple.com , but it would not launch the window.
After these changes were made, I was able to get online on the airport wifi, but I am now unable to connect to my remote website servers using SSH in the Terminal app. When I try to connect to various remote servers, the connection hangs and eventually times out.
I have tried connecting to multiple servers using verbose output, and the following is returned:
OpenSSH_9.8p1, LibreSSL 3.3.6
debug1: Reading configuration data /Users/username/.ssh/config
debug1: /Users/username/.ssh/config line 85: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
debug1: /etc/ssh/ssh_config line 54: Applying options for *
debug2: resolve_canonicalize: hostname 178.128.228.188 is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/Users/username/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/Users/username/.ssh/known_hosts2'
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug3: channel_clear_timeouts: clearing
debug3: ssh_connect_direct: entering
debug1: Connecting to 178.128.228.188 [178.128.228.188] port 22.
debug3: set_sock_tos: set socket 3 IP_TOS 0x48
Nothing is returned after the
set_sock_tos
line.
Things that I have tried:
- Tried enabling/disabling the built-in firewall, but it does not correct the issue.
- Tried removing plist files from Library > Preferences > System Configuration and restarted my MacBook to allow macOS to rebuild the preference files. This did not work. I backed up all of the files prior to completing this.
**Update**
Preference list files backed up and removed from the Library > Preferences > System Configuration folder:
- com.apple.airport.preferences.plist
- com.apple.wifi.message-tracer.plist
- NetworkInterfaces.plist
- preferences.plist
I am able to connect to the servers via SFTP in Transmit with no issues, and can do the same via SSH on my iPhone using Prompt.
No other changes were made while trying to connect to the airport Wifi using the captive hotspot.
Any ideas on how to resolve this issue?
Asked by Mike Hermary
(101 rep)
Feb 1, 2025, 07:52 AM
Last activity: Aug 2, 2025, 08:04 PM
Last activity: Aug 2, 2025, 08:04 PM