LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-27-2004, 03:33 AM   #1
roopunix
Member
 
Registered: Feb 2004
Location: Kathmandu
Distribution: Redhat/fedora/Suse [Wanna Drive With Debian]
Posts: 208

Rep: Reputation: 30
where is ssh


i used to know where is ssh file i know that by default it is disabled
but now i want to enable it. where is that file my distro is red hat9
 
Old 02-27-2004, 03:50 AM   #2
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Rep: Reputation: 30
Usually it would at /usr/bin/ssh

Are you sure it's installed?

You can look for it with 'locate bin/ssh'

Also try 'rpm -qa | grep ssh'

John
 
Old 02-27-2004, 04:00 AM   #3
roopunix
Member
 
Registered: Feb 2004
Location: Kathmandu
Distribution: Redhat/fedora/Suse [Wanna Drive With Debian]
Posts: 208

Original Poster
Rep: Reputation: 30
thanks for the quick response john i tried it it is installed
but it is disabled. it tried to ssh it but it refused how can i enable it
 
Old 02-27-2004, 04:03 AM   #4
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Rep: Reputation: 30
What error message are you getting?
 
Old 02-27-2004, 04:08 AM   #5
roopunix
Member
 
Registered: Feb 2004
Location: Kathmandu
Distribution: Redhat/fedora/Suse [Wanna Drive With Debian]
Posts: 208

Original Poster
Rep: Reputation: 30
the message i am getting is "connection refused by remote host"
as i said earlier there is a file named i think sshd in which it is disabled by default. i just need to get that file.. thanks
 
Old 02-27-2004, 05:07 AM   #6
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Rep: Reputation: 30
Are you trying to connect to some other machine, or to enable connections to yours?

For the first one, you'll have to talk to whoever administers the remote machine.

For the second, look at 'man 5 hosts_access' and 'man sshd'

John
 
Old 02-27-2004, 06:43 AM   #7
linuxxed
Member
 
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
Quote:
Originally posted by roopunix
the message i am getting is "connection refused by remote host"
as i said earlier there is a file named i think sshd in which it is disabled by default. i just need to get that file.. thanks
well if the sshd daemon is not running on the remote host then you cannot ssh to it.

On the remote host (if you have access), check if the sshd daemon is listening on port 22.

lsof -i:22

Check the host based filters hosts.allow and hosts.demy

Check Iptables

Check you /etc/ssh/sshd_config


On the client:

All you need is openssh client

ssh -l [USER] [HOST]
 
Old 02-27-2004, 05:01 PM   #8
Inexactitude
Member
 
Registered: Oct 2003
Distribution: Slackware 12.2, Ubuntu 9.04
Posts: 477

Rep: Reputation: 30
Chances are the server isn't running. Try /usr/bin/sshd or /usr/local/bin/sshd or /usr/local/sbin/sshd or /usr/sbin/sshd.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
[SSH] Issue logging in [SSH & Permissions] MD3 Linux - Networking 11 12-10-2006 09:25 AM
Mac OS X ssh client / linux sshd : ssh hangs/disconnects Apollo77 Linux - Networking 1 05-24-2006 11:53 AM
I turned off SSH, but I cant get it back! How do you start SSH on boot? nmoog Slackware 2 02-08-2004 05:18 PM
ssh issue: /usr/bin/ssh -x -oFallBackToRsh no -l WeNdeL Linux - Software 1 03-04-2003 07:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:59 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration