Monday, June 22, 2009

ssh curiosity

my ssh configuration has been driving me nuts, I had changed my default port, but; it kept insisting on on sending connections to a server through port 22(unless I was root) so my first thought was privileges were wrong. So I made sure I had as a user sufficient privileges. I checked the files in /etc/ssh with ls -l and everything seemed correct. It would accept connections from a client in the new port with no hiccups. I took a look in my /etc/ssh dir and saw two odd files, one was ssh_config~ and the other was sshd_config~, I removed these two files and that fixed the issue. The only thing I can figure was when I called up ssh as regular user it did not know which file to select so it just went with the system default of port 22.