LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-25-2005, 05:12 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
SSH Assistance


I don't know if there is a command or some way I can check and see if I have SSH installed on my Debian "etch" machine? I just installed and I know that Apache is working and I opened the port (22) for SSH pointing to the Debian server but I get connection refused.

How do I know if SSH is installed or maybe just disabled?

Thanks!
 
Old 08-25-2005, 05:34 PM   #2
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
From your server:
Code:
ssh -V
whereis sshd
ls /etc/init.d | grep sshd_not_to_be_run
The first will tell you the whether ssh is installed, together with the version. The second will tell you whether sshd is installed, the third whether it is set to run at boot time or otherwise (the absence of the file indicates that it will be started via /etc/init.d).

Assuming that you have sshd running, then try to connect using the verbose switch (from another machine)
Code:
ssh -v someone@foobar.org
EDIT: the package ssh includes both the client and server, thus if you have ssh installed you almost certainly also have sshd.

Cheers,

mj

Last edited by mjrich; 08-25-2005 at 05:40 PM.
 
Old 08-25-2005, 06:04 PM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
This is what I have which does not look good so I am guessing I don't have SSH installed.

Code:
debian:~# su
debian:~# password
debian:~# ssh -V
-bash: ssh: command not found
debian:~# whereis sshd
sshd:
debian:~# ls /etc/init.d | grep sshd_not_to_be_run
debian:~#
What do I need to do to get SSH installed since it appears I don't have it installed.
 
Old 08-25-2005, 06:13 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Code:
apt-get install ssh
 
Old 08-25-2005, 06:26 PM   #5
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
That was easy
 
  


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-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
perl assistance... Ateo Programming 8 07-02-2005 08:07 PM
Need assistance please wennie Linux - Software 5 03-16-2005 07:24 AM
Need assistance spotslayer Linux - Software 1 11-18-2004 06:49 AM
Need Assistance Bizar Slackware 11 06-25-2003 09:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:49 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