Setting up SSH Server...

Discussion in 'OT Technology' started by DatacomGuy, Oct 21, 2003.

  1. DatacomGuy

    DatacomGuy is moving to Canada

    Joined:
    Oct 14, 2002
    Messages:
    16,546
    Likes Received:
    0
    Location:
    Tampa, FL
    [font=verdana, arial, helvetica]I want to setup a linux box to run just SSH, nothing else. This SSH box will operate as a way for me to tunnel a few port connections to another box in my network. Basically my network at work blocks all outgoing ports except 23 and 80. I want to run the SSH server on port 23, and then tunnell 3389 and 80 through the server so that I can RDC to my WIN2K Advanced Server box. Right now I'm doing this, but its through my friends SSH server, which is located on the other side of the country, and I hate to have to depend on him and have him feel obligated to make sure everything is working well.

    I know close to nothing about SSH, so I need to find out a few things.

    1. What is best distro for this? I have RH and FreeBSD, but I'm hoping that I can find a command-line oriented SSH server software that I can run on a command-line based OS possibly on a 386 or 486 box in the closet.. something that doesn't require a lot of resources, and I have a 486 laying around.. trying to be resourceful. Correct me if this can't happen.

    2. How do I setup SSH for this? I know nothing about SSH.

    3. I need to be able to add this SSH server onto my existing TCP/IP network (3 machines and two laptops all running XP, except server which is 2000 Advanced). I have a cable connection (1.5m) with a Linksys router and netgear switches. I need to be able to add this server into the existing network and not have a problem tunnelling these ports.

    OK. So. Who wants to help me first? Any helpful links would be great.
    [/font]
     
  2. Rob

    Rob OT Supporter

    Joined:
    Jul 6, 2002
    Messages:
    88,612
    Likes Received:
    36
    Location:
    Atlanta, GA
    As I said in the PM.....Debian. ;)


    You will just forward port 23 on the router to the SSH machine. Then you will be able to tunnel anything into and out of your network.
     
  3. DatacomGuy

    DatacomGuy is moving to Canada

    Joined:
    Oct 14, 2002
    Messages:
    16,546
    Likes Received:
    0
    Location:
    Tampa, FL
    :cool: Thanks for your help Rob. :bigok:

    Downloading Debian now.

    Anyone have experience with Cygwin and OpenSSH?
     
  4. Aimless

    Aimless Resident drunkey

    Joined:
    Nov 5, 2001
    Messages:
    2,534
    Likes Received:
    0
    Location:
    Wisconsin
    You might want to forward port 22 instead. 23 is telnet.

    What are you doing with Cygwin?
     
  5. Rob

    Rob OT Supporter

    Joined:
    Jul 6, 2002
    Messages:
    88,612
    Likes Received:
    36
    Location:
    Atlanta, GA

    The only port he can get out on at work is 23. Therefore he is going to use SSH on port 23. Telnet doesn't work too good for tunneling.
     
  6. DatacomGuy

    DatacomGuy is moving to Canada

    Joined:
    Oct 14, 2002
    Messages:
    16,546
    Likes Received:
    0
    Location:
    Tampa, FL
    As Rob said, I can only get out on 23.. I'll forward it at the router.

    I had just found Cygwin while playin' around on google. Appears to let a Windows user run Linux applications and services.

    I was contemplating trying to run Cygwin and loading OpenSSH on my Advanced server machine.. just to try it all out..
     
  7. SLED

    SLED build an idiot proof device and someone else will

    Joined:
    Sep 20, 2001
    Messages:
    28,118
    Likes Received:
    0
    Location:
    AZ, like a bauce!
    cygwin can be an SSH server itself. btw, SSH is the shell implimentation of SSL ;) What type of things are you going to be tunnelling?
     
  8. Leb_CRX

    Leb_CRX OT's resident terrorist

    Joined:
    Apr 22, 2001
    Messages:
    39,994
    Likes Received:
    0
    Location:
    Ottawa, Canada
    by RDC to your win2K box what do you mean??

    also I dont get it, if you connect through SSH to your linux box (which is text based...right? like a linux prompt) what good would that do to connect to a windows machine? it wont be GUI even right? it will all be text bassy? excuse my retarded questions, I never looked into this, just sounds weird :o
     
  9. Rob

    Rob OT Supporter

    Joined:
    Jul 6, 2002
    Messages:
    88,612
    Likes Received:
    36
    Location:
    Atlanta, GA

    Any aplication that uses TCP or UDP (such as RDP) can be forwarded through an encrypted SSH connection.

    This is very useful when you can only access the outside world on a limited number of ports.
     
  10. Leb_CRX

    Leb_CRX OT's resident terrorist

    Joined:
    Apr 22, 2001
    Messages:
    39,994
    Likes Received:
    0
    Location:
    Ottawa, Canada
    can you give me an example? and I understand that, your basically creating a network/bridge between two computers, I completally understand that part, but what I am saying is what would that be used for...and would it be text or or something else??

    for example, he can SSH into one computer, then what is he going to do with it? (just example of things that one can do, I know anything with TCP/UDP but just give me some real world examples, and what is RDP)
     
    Last edited: Oct 21, 2003
  11. Leb_CRX

    Leb_CRX OT's resident terrorist

    Joined:
    Apr 22, 2001
    Messages:
    39,994
    Likes Received:
    0
    Location:
    Ottawa, Canada
    nevermind, I re-read careful and I understand :slap:
     
  12. DatacomGuy

    DatacomGuy is moving to Canada

    Joined:
    Oct 14, 2002
    Messages:
    16,546
    Likes Received:
    0
    Location:
    Tampa, FL
    It acts as a tunnel.. or proxy..
     
  13. Rob

    Rob OT Supporter

    Joined:
    Jul 6, 2002
    Messages:
    88,612
    Likes Received:
    36
    Location:
    Atlanta, GA
    :bigthumb:
     

Share This Page