SSHD port for Putty
Register

We are the best invite forum on the internet! Here you will find free invites, free seedboxes, free bonuses, and much more. Our members know the true meaning of sharing and have created a truly global bittorent community! Our site has the most up to date information on all private trackers and our members will guide you and introduce you to this truly secretive and enlightened club. Ready to get started? Register now!


Results 1 to 7 of 7
Like Tree2Likes
  • 1 Post By Elephant
  • 1 Post By Kitkatra

Thread: SSHD port for Putty

  1. #1

    Join Date
    May 2011
    Posts
    230

    Default SSHD port for Putty

    hi I discover something yesterday my ISP is blocking port 22 I gues its remote control port or something anyway

    I wonder how can I change my SSH conection port I can connect my server with out port 22 because its blocking from My ISP

    I checked /etc/ssh/ folder



    and I did Ls -a got this


    moduli sshd_config ssh_host_key ssh_host_rsa_key.pub
    s2.cfg ssh_host_dsa_key ssh_host_key.pub
    ssh_config ssh_host_dsa_key.pub ssh_host_rsa_key


    I checked /etc/ssh/sshd_config


    # What ports, IPs and protocols we listen for
    Port 22
    to
    port 888

    and from /etc/ssh/ssh_config

    IdentityFile ~/.ssh/identity
    # IdentityFile ~/.ssh/id_rsa
    # IdentityFile ~/.ssh/id_dsa
    # Port 22

    # port 888

    can anyone tell me why its not worked ? so far I checked rest files but there is nothign about port's number

    thanks


  2. To remove ads become VIP. Inquire about advertising here.
  3. #2

    Join Date
    Feb 2012
    Posts
    174

    Default

    It should work when you changed the config file of sshd. I've done it that way myself last week, but for a server that is not connected to the internet...
    Did you restart the service after you changed the file? If not, please do so.

    Also, are you behind some kind of nat-router / firewall / proxy? If yes, remember to configure a dnat rule for your new port.

  4. #3

    Join Date
    Feb 2010
    Posts
    448

    Default

    Your ISP blocked port 22? That's very strange, because it doesn't make sense to block destination port 22. Just for clarification, is this a server or a home computer you are trying to connect to?

    If this is a server, you can change the daemon port to any other port you like at /etc/ss/sshd_config. You should have something like this:

    Code:
    #port 22
    port 8888
    Then run

    Code:
    /etc/init.d/sshd restart
    Now you can connect to your server using putty, port 8888.

    Edit: These changes should be done on your server. It has no effect if you change it on your own Linux PC. If you still can't connect to port 8888, then you might have some outgoing port connection, or your server is rejecting you. Make sure that you have no firewall blocking on your server (e.g Iptables).
    Last edited by Seeyabye; February 15th, 2012 at 06:16 AM.

  5. #4

    Join Date
    Oct 2009
    Location
    UK
    Posts
    561

    Default

    Quote Originally Posted by Seeyabye View Post

    Then run

    Code:
    /etc/init.d/sshd restart
    I think he may have problems running that when he cant ssh lol
    Kitkatra likes this.

  6. #5

    Join Date
    Oct 2011
    Posts
    167

    Default

    I noticed you talked about "/etc/ssh/ssh_config" which is for the ssh client (not the server) on linux.
    If your client is a linux box you'll need to tell it to use the desired port by changing
    # Port 22
    to
    port 888
    (note the pound sign must be removed so that line is not commented out)

    On the other hand, the thread talks about putty which is primarily a winblows app, so if you're running putty from a M$ machine, make sure you tell it which port to connect to as well.

    If you're still having trouble after that, as a troubleshooting measure, you can telnet to the sshd server port and you should see a banner message appear. From windows, the command is
    Code:
    telnet <IP> <port>
    You should get a response something like
    Escape character is '^]'. SSH-1.99-OpenSSH_3.9p1
    Last edited by emandiputsyna; February 16th, 2012 at 03:59 PM.

  7. #6

    Join Date
    Mar 2011
    Location
    Sheffield, England
    Posts
    583

    Default

    Quote Originally Posted by Elephant View Post
    I think he may have problems running that when he cant ssh lol
    This post made me laugh! If you can't SSH to change the port you could mabye try SSH via a web browser using a trustworthy site such as GotoSSH.com - A Web Based SSH client

  8. #7

    Join Date
    Feb 2010
    Posts
    448

    Default

    Quote Originally Posted by Kitkatra View Post
    This post made me laugh! If you can't SSH to change the port you could mabye try SSH via a web browser using a trustworthy site such as GotoSSH.com - A Web Based SSH client
    Pretty much, I still don't get why ISP would block such important security ports like destination port 22. I'm guessing he has configuration done wrong at the server side and not the other way round.

    Quote Originally Posted by emandiputsyna View Post
    I noticed you talked about "/etc/ssh/ssh_config" which is for the ssh client (not the server) on linux.
    If your client is a linux box you'll need to tell it to use the desired port by changing
    # Port 22
    to
    port 888
    (note the pound sign must be removed so that line is not commented out)

    On the other hand, the thread talks about putty which is primarily a winblows app, so if you're running putty from a M$ machine, make sure you tell it which port to connect to as well.

    If you're still having trouble after that, as a troubleshooting measure, you can telnet to the sshd server port and you should see a banner message appear. From windows, the command is
    Code:
    telnet <IP> <port>
    You should get a response something like
    I'm pretty sure you saw it wrongly. He stated sshd_config not ssh_config. Either way his question is not clear so yeah.

Similar Threads

  1. speedtest thru putty for seedbox
    By rifters in forum Seedbox Discussions
    Replies: 24
    Last Post: September 28th, 2011, 04:26 AM
  2. Port Forwarding For Dummies :P
    By beef in forum Software
    Replies: 4
    Last Post: March 21st, 2010, 05:21 AM
  3. Torrent Related...Come On In For A Good Laugh
    By minimafiaaj in forum General Discussion
    Replies: 24
    Last Post: November 9th, 2008, 07:20 PM
  4. port forwarding
    By snake in forum BitTorrent Discussion
    Replies: 9
    Last Post: December 19th, 2007, 07:49 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •