LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-01-2004, 11:28 AM   #1
dn7
LQ Newbie
 
Registered: Sep 2004
Posts: 9

Rep: Reputation: 0
SSH Connection


Hello All,

I have installed SuSE Linux Enterprise Server 8 OS.

I am trying to connect to other box (Sun Solaris 5.5) by using ssh.

When I tried to connect get the following message:

oracle@dawar:~> ssh 150.200.100.00 (fake IP address)
2080: ssh: connect to address 150.200.100.00 port 22: Connection refused

what I need to do?


I can ping successfully to 150.200.100.00 from SLES8.

Please note ssh is installed on SLES 8.

oracle@dawar:~>rpm -qa | grep ssh
openssh-3.4p1-105

Regards,
D
 
Old 09-01-2004, 11:33 AM   #2
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Is sshd installed and running on the Solaris system? I don't recall Solaris 5.5 having SSH included.
 
Old 09-01-2004, 11:37 AM   #3
dn7
LQ Newbie
 
Registered: Sep 2004
Posts: 9

Original Poster
Rep: Reputation: 0
How to check SSH installed or not in Sun Solaris?

How to check SSH installed or not in Sun Solaris?
 
Old 09-01-2004, 11:47 AM   #4
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
On a Solaris 5.5 system, unless you installed it, it's not there. If you did install it, then look under /usr/local or /opt for it. Check "ps -ef | grep sshd" to see if it's running. If not, go grab it from sunfreeware.com.
 
Old 09-01-2004, 12:16 PM   #5
dn7
LQ Newbie
 
Registered: Sep 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Yes, SSH is installed on Sun box.

Yes, SSH is installed on Sun box.

D
 
Old 09-01-2004, 12:39 PM   #6
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Is sshd using libwrap to filter connections or being launched via inetd/xinetd? Check your hosts.allow and hosts.deny files. Also if you have a firewall, check that config also.
 
Old 09-01-2004, 12:42 PM   #7
nitin_batta
Member
 
Registered: Aug 2004
Location: India
Distribution: Redhat Enterprise Server 2.1
Posts: 96

Rep: Reputation: 15
Do you have a firewall between the sun box and Suse or any one of the machines.

I too dunn remember Sun 5.5 coming with sshd.

If you fell the sshd is running fine then the best way to test would be login to the sun box and try

#ssh localhost or
#telnet localhost 22

See if you get a proper output here then the sshd is running fine on the sun box and then it may be a firewall issue

Else you need to check the sshd config file and make sure it is running on sun box 5.5.



.... Nitin Batta ....
http://nitinb.blogspot.com

__________________
If this helped you, please take the time to rate the value of this post by clicking the affero button
 
Old 09-01-2004, 01:14 PM   #8
dn7
LQ Newbie
 
Registered: Sep 2004
Posts: 9

Original Poster
Rep: Reputation: 0
I telnet from my PC to connect to the Sun Box.

I do not have root password for Sun box.


dhs3 142: telnet dhs32 22
Trying 8.8.8.5...
telnet: Unable to connect to remote host: Connection refused


dhs3 143: ssh dhs32
ssh: Command not found
 
Old 09-01-2004, 01:32 PM   #9
nitin_batta
Member
 
Registered: Aug 2004
Location: India
Distribution: Redhat Enterprise Server 2.1
Posts: 96

Rep: Reputation: 15
Assuming dhs3 is your machine then first and foremost you do not have a ssh client running on it.

putty is a great ssh and telnet client.

You do not need root access to the SUN box to check if sshd is running.
Just login to box as you would normally do and then do

$telnet localhost 22 and see if it gives you some o/p.

or

$ssh localhost to see if it works fine.
 
Old 09-01-2004, 01:43 PM   #10
dn7
LQ Newbie
 
Registered: Sep 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Do I need to relace word localhost by host name or type as

$telnet localhost 22

OR


$ssh localhost

if I do not have ssh on sun box why I am getting o/p

from following command

dn3 68: ps -ef|grep sshd
oracle7 23642 23241 0 10:25:03 pts/4 0:00 grep sshd

Thanks for your quick responses.
 
Old 09-01-2004, 01:50 PM   #11
nitin_batta
Member
 
Registered: Aug 2004
Location: India
Distribution: Redhat Enterprise Server 2.1
Posts: 96

Rep: Reputation: 15
Quote:
dn3 68: ps -ef|grep sshd
oracle7 23642 23241 0 10:25:03 pts/4 0:00 grep sshd
sshd is not running on the host dn3.

First if you need to ssh from dn3 to sun box

1. Get a ssh client for yourself.

2. Ask your sys admin on the way he has allowed access to the sun box.
 
Old 09-01-2004, 02:15 PM   #12
dn7
LQ Newbie
 
Registered: Sep 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Sorry it was typo error dn3 and dhs3 is for sun box.
It should be dhs3

So it is:

dhs3 68: ps -ef|grep sshd
oracle7 23642 23241 0 10:25:03 pts/4 0:00 grep sshd

For linux is as follows:

oracle@dawar:~>rpm -qa | grep ssh
openssh-3.4p1-105
 
Old 09-01-2004, 02:31 PM   #13
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Quote:
oracle7 23642 23241 0 10:25:03 pts/4 0:00 grep sshd
Just shows that you're running the grep command and looking for sshd. It does not show an sshd process. If you want to do this a little more correctly (and prove to yourself that sshd is not running) do this instead:

$ ps -ef |grep sshd|grep -v grep

That will show you all the processes running that have "sshd" in their command line but do not have "grep" in the command line. You'll get no output when you run that command, thus proving that sshd is not running.
 
Old 09-01-2004, 02:45 PM   #14
dn7
LQ Newbie
 
Registered: Sep 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Ok,

I do not have SSH.


dhs3 145: ps -ef|grep sshd|grep -v grep
dhs3 146:

Do I need to install ssh client on only sun box?
Is it correct?


For linux is as follows:

oracle@dawar:~>rpm -qa | grep ssh
openssh-3.4p1-105
 
Old 09-01-2004, 03:21 PM   #15
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
If you are trying to SSH from SuSE system to Solaris system, then you need an SSH client on SuSE and a SSH server on the Solaris. Did you login to the Solaris system via another method (ie console or telnet) and verify that sshd is running (if you have it installed)?

If it is not installed then you'll need the assistance of your system administrator since you stated that you do not have root access to the Solaris system.

Last edited by stickman; 09-01-2004 at 03:22 PM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH connection TL3 Linux - Newbie 2 11-22-2005 02:19 AM
ssh connection jeasimkev Linux - Newbie 2 12-10-2003 09:06 PM
Ports used by a SSH Connection proteo Linux - Networking 3 10-22-2003 09:30 AM
Secured Connection with SSH SUKHOI_Flanker Linux - Software 0 07-03-2003 01:50 AM
ssh connection doodah Linux - Networking 2 05-09-2001 07:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration