Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I am a amateur to the working of SSH client. I was trying to breakthrough the firewall of my sub-network in order to access all sites. Though a web ...
  1. #1
    Just Joined!
    Join Date
    May 2008
    Posts
    16

    SSH configration



    Hi,
    I am a amateur to the working of SSH client. I was trying to breakthrough the firewall of my sub-network in order to access all sites. Though a web link , provides an in-depth info on how to break into the firewalls but I failed to implement it.

    Well I connect to the internet via a proxy server 10.0.1.1.
    On doing an 'nmap 10.0.1.1', it shows the following output,
    Interesting ports on 10.0.1.1:
    Not shown: 1702 closed ports
    PORT STATE SERVICE
    21/tcp open ftp
    22/tcp open ssh
    23/tcp open telnet
    25/tcp open smtp
    53/tcp open domain
    80/tcp open http
    110/tcp open pop3
    143/tcp open imap
    3306/tcp open mysql
    5000/tcp open UPnP
    8080/tcp open http-proxy
    10000/tcp open snet-sensor-mgmt

    As per the link, I need to create a ~/.ssh/config file with the following details,
    Host work
    HostName 66.35.250.203
    User sporkey
    LocalForward 20000 192.168.0.66:80
    LocalForward 22000 192.168.0.66:22
    LocalForward 22139 192.168.0.8:139
    LocalForward 22110 192.168.0.5:110

    Host http
    HostName localhost
    User donkey
    Port 22000
    HostKeyAlias localhosthttp


    Can someone tell me how to go forward with this, as in what exactly to put in the 'config' file to log onto the server. As per a link, the command 'ssh work' asks for a password which is not know. Kindly provide some help.

    Thanks.
    Last edited by martin910; 07-17-2009 at 05:57 PM. Reason: Typing mistake

  2. #2
    Linux Guru
    Join Date
    Jan 2009
    Location
    Dover, NH
    Posts
    1,633
    If it's asking for a password, you're probably set up okay. I assume your hosts file defines "work" to the IP you're trying to reach. SSH assumes you have the same username on the target as you are logged in as local. If that's the case, then you enter your password on the target computer (work). If you have a different username, then prefix this to the target with @.....

    ssh username@work

    then the password it asks for you should know.

Posting Permissions

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