LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   where is ssh (https://www.linuxquestions.org/questions/linux-networking-3/where-is-ssh-151075/)

roopunix 02-27-2004 03:33 AM

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

jkobrien 02-27-2004 03:50 AM

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

roopunix 02-27-2004 04:00 AM

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

jkobrien 02-27-2004 04:03 AM

What error message are you getting?

roopunix 02-27-2004 04:08 AM

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

jkobrien 02-27-2004 05:07 AM

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

linuxxed 02-27-2004 06:43 AM

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]

Inexactitude 02-27-2004 05:01 PM

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.


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