Author Topic: Setting up sshd to run on additional ports?  (Read 989 times)

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Setting up sshd to run on additional ports?
« on: May 21, 2008, 11:56:24 PM »
So it seems a lot of ports are blocked at my new job and I can't connect to anything via SSH on port 22.  Is there a way to set up the server so it will run on additional ports.  Also, how can I check which ports I have available on my end?

Zorchenhimer

  • Autococker
  • Posts: 2614
Re: Setting up sshd to run on additional ports?
« Reply #1 on: May 22, 2008, 12:26:42 AM »
If you are running Ubuntu:
System > Administration > Network Tools

There is a tab called "Port Scan."  Have it scan 127.0.0.1.

For the alternate port, open up the ssh config file (/etc/ssh/ssh_config) and modify line 39 to your needs.

y00tz

  • Autococker
  • Posts: 2742
Re: Setting up sshd to run on additional ports?
« Reply #2 on: May 22, 2008, 01:23:32 AM »
If it's Windows, could you call
Code: [Select]
netstat or
Code: [Select]
netstat -an from command prompt?

I seem to have written down
Code: [Select]
netstat -an |find /i "<port>" as a search method for open ports, but all it does is search the I drive, lol.

Zorchenhimer

  • Autococker
  • Posts: 2614
Re: Setting up sshd to run on additional ports?
« Reply #3 on: May 22, 2008, 10:26:27 AM »
Oh, forgot he needed the list of ports Windows side.  >.<

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Setting up sshd to run on additional ports?
« Reply #4 on: May 23, 2008, 09:28:39 AM »
Hmm, I guess searching for open ports on my machine doesn't really help much as they get blocked by the router or something else further up.  We have a local IRC server I can connect to, but I can't connect to external IRC servers on the same port.

KnacK

  • Global Moderator
  • Autococker
  • Posts: 3039
Re: Setting up sshd to run on additional ports?
« Reply #5 on: May 23, 2008, 12:37:59 PM »
* KnacK suggest a friendly visit to the BOFH......


[psssst V: http://www.theregister.co.uk/2008/05/23/bofh_2008_episode_19/ ]