If Port is set to 422 in /etc/ssh/ssh_config, ssh client still tries to use port 22. ssh -p 422 localhost does work however becasue Port is set to 422 in sshd_config geronimo:/data/openssh-5.2p1 # ssh -vvv localhost OpenSSH_5.2p1, OpenSSL 0.9.8e 23 Feb 2007 debug1: Reading configuration data /etc//ssh_config debug3: RNG is ready, skipping seeding debug2: ssh_connect: needpriv 0 debug1: Connecting to localhost [127.0.0.1] port 22. debug1: connect to address 127.0.0.1 port 22: Connection refused debug1: Connecting to localhost [::1] port 22. debug1: connect to address ::1 port 22: Connection refused ssh: connect to host localhost port 22: Connection refused geronimo:/data/openssh-5.2p1 #
Ted Creedon wrote:> If Port is set to 422 in /etc/ssh/ssh_config, ssh client still tries to use > port 22. ssh -p 422 localhost does work however becasue Port is set to 422 > in sshd_config > > geronimo:/data/openssh-5.2p1 # ssh -vvv localhost > OpenSSH_5.2p1, OpenSSL 0.9.8e 23 Feb 2007 > debug1: Reading configuration data /etc//ssh_config^^^^^^^^^ Error> debug3: RNG is ready, skipping seeding > debug2: ssh_connect: needpriv 0 > debug1: Connecting to localhost [127.0.0.1] port 22. > debug1: connect to address 127.0.0.1 port 22: Connection refused > debug1: Connecting to localhost [::1] port 22. > debug1: connect to address ::1 port 22: Connection refused > ssh: connect to host localhost port 22: Connection refused > geronimo:/data/openssh-5.2p1 # > _______________________________________________ > openssh-unix-dev mailing list > openssh-unix-dev at mindrot.org > https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev >
Sorry, I had 2 ssh_config files, one in /etc/ and one in /etc/ssh Just poking along trying to get NX up and running. It depends on ssh... Thanks tedc
Ted Creedon wrote:> If Port is set to 422 in /etc/ssh/ssh_config, ssh client still tries to use > port 22. ssh -p 422 localhost does work however becasue Port is set to 422 > in sshd_configSounds like what you want is /etc/ssh/config or ~/.ssh/config to include something like: localhost: Port 422 -matt
I screwed it up - had 2 ssh_conf files... Works fine Busy getting my pam stack set up thanks ted On Thu, Apr 9, 2009 at 12:51 PM, Matt Anderson <mra at malloc.org> wrote:> Ted Creedon wrote: > > If Port is set to 422 in /etc/ssh/ssh_config, ssh client still tries to > use > > port 22. ssh -p 422 localhost does work however becasue Port is set to > 422 > > in sshd_config > > Sounds like what you want is /etc/ssh/config or ~/.ssh/config to include > something like: > localhost: > Port 422 > > -matt >