You are not logged in.

#1 2006-09-19 23:45:45

_will
Member
Registered: 2004-07-08
Posts: 123

unable to set ssh to use multiple ports, can't change f/22

/etc/ssh/ssh_config wrote:

Port 22
Port 1606

sudo /etc/rc.d/sshd restart 
output wrote:

:: Stopping Secure Shell Daemon                                          [DONE]
:: Starting Secure Shell Daemon                                          [DONE]

ssh localhost -p 1606
output wrote:

ssh: connect to host localhost port 1606: Connection refused

i comment out Port 22 in the config file, restart the service:

/etc/ssh/ssh_config wrote:

Port 1606

.: sudo /etc/rc.d/sshd restart                                        ~
:: Stopping Secure Shell Daemon                                          [DONE] 
:: Starting Secure Shell Daemon                                          [DONE] 
.: ssh localhost                                                              ~
ssh: connect to host localhost port 1606: Connection refused

strange, i didn't think it'd use 1606 instead of 22 so i try 22, still with Port 1606 as the only port listed in ssh_config

.: ssh localhost -p 22                                                        ~
[output of banner]
Password: 


Though ssh_config only lists port 1606, ssh only responds on 22, how'd this happen?
am expecting change with the wrong file?

thanks
will

Offline

#2 2006-09-20 01:25:35

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: unable to set ssh to use multiple ports, can't change f/22

do a netstat -nl, and see if it is listening.
if it is, then it is probably tcp_wrappers blocking your access to it.
If it isn't, then ssh isn't listening.
wink

EDIT: *reading the above more closely*
oh, and you want sshd_config for the daemon. ssh_config is for the client.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2006-09-20 02:25:12

_will
Member
Registered: 2004-07-08
Posts: 123

Re: unable to set ssh to use multiple ports, can't change f/22

:oops:   ha, that makes a lot of sense.

sorry for wasting time on a typo

thanks
will

Offline

Board footer

Powered by FluxBB