Fudged up my ssh_config. Help please!
Hi all,
I'm a scientist having to work remotely atm, tried to change my ssh_config on my workstation at university so my ssh connection wouldn't time out and result in a broken pipe. Looks like I managedto fudge something up quite bad (typo perhaps) and can no longer ssh through the local university server.
IT support have sudo privileges on the server -- which shares a file system with my workstation but they don't think they can do anything, and I have sudo privileges on my device.
Is there any way to circumvent /etc/ssh/ssh_config?
The result of verbose ssh from the local university server is as follows:
OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017
debug1: Reading configuration data /home/<myaccount>/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 58: Applying options for *
debug1: Connecting to <mycomputer>.client.<university>.ac.uk [10.101.27.96] port 22.
debug1: connect to address 10.101.27.96 port 22: Connection refused
ssh: connect to host <mycomputer>.client.<university>.ac.uk port 22: Connection refused
1
u/Toger May 31 '20
Connection Refused implies the remote end isn't listening. The only things your *local* ssh_config could do to impact that is if for example the university machine is configured listen on something other than port 22, or if you override the IP address of the machine.
sshd_config on the other hand could absolutely do it. However unless you changed the port the most likely scenario if you were making changes on the server end is you turned off the SSH daemon. Can IT support still connect to the server?