Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Ubuntu Help > SSH configration

Forgot Password?
 Ubuntu Help   Discussion and help about Ubuntu, Kubuntu, Xubuntu, and all the Ubuntu family

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 07-17-2009   #1 (permalink)
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
martin910 is offline  


Reply With Quote
Old 07-19-2009   #2 (permalink)
Linux Engineer
 
D-cat's Avatar
 
Join Date: Jan 2009
Location: Dover, NH
Posts: 1,432
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.
__________________
You just WON the game!
D-cat is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 05:58 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2