Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-31-2007, 02:57 PM
|
#1
|
LQ Newbie
Registered: Oct 2007
Posts: 10
Rep:
|
Can't SSH/Putty into Debian server
Hi all, I just switched from FC6 to Debian and I can no longer putty (ssh) in to the server.
I get the following error message when I attempt to open it.
[PuTTY Fatal Error]-Title
Network error: Connection refused
Is there a firewall restriction within debian that by default blocks this connection?
Note: I am trying to SSH to the debian box from the same lan/subnet.
Thanks
|
|
|
10-31-2007, 03:07 PM
|
#2
|
LQ Newbie
Registered: May 2007
Location: Virginia
Distribution: slackware, solaris
Posts: 4
Rep:
|
Is sshd running on the debian machine?
|
|
|
10-31-2007, 03:11 PM
|
#3
|
LQ Newbie
Registered: Oct 2007
Posts: 10
Original Poster
Rep:
|
Still pretty new to Linux, how do I check that?
|
|
|
10-31-2007, 03:17 PM
|
#4
|
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Rep: 
|
Is it even installed ? By default Debian does NOT install the ssh server if you start with just a base install of the OS.
Code:
username@it-etch:~$ apt-cache policy openssh-server
openssh-server:
Installed: 1:4.3p2-9
Candidate: 1:4.3p2-9
Version table:
*** 1:4.3p2-9 0
500 http://ftp.uwsg.indiana.edu etch/main Packages
100 /var/lib/dpkg/status
to see if it's running
Code:
it-etch:~# netstat -nlp | grep ::22
tcp6 0 0 :::22 :::* LISTEN 29489/sshd
it-etch:~#
This is actually one of the reasons I like Debian, it doesn't assume I want all sorts of services running by default. I have to Specifically install and configure what I want to run.
Last edited by farslayer; 10-31-2007 at 03:19 PM.
|
|
|
10-31-2007, 03:18 PM
|
#5
|
LQ Newbie
Registered: Oct 2007
Posts: 10
Original Poster
Rep:
|
probably not. i did a basic install b/c some of the other components kept failing (web, desktop, etc)
|
|
|
10-31-2007, 03:21 PM
|
#6
|
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Rep: 
|
aptitude update
aptitude keep-all
aptitude install openssh-server
you should be good to go !!
|
|
|
10-31-2007, 03:24 PM
|
#7
|
LQ Newbie
Registered: Oct 2007
Posts: 10
Original Poster
Rep:
|
Thanks, that was it!!! It wasn't installed.
----
How do you know what the package name is?
For instance, if I would have thought it wasn't installed. I would have entered 'apt-get install ssh' or 'apt-get install sshd'
Thanks
|
|
|
10-31-2007, 03:25 PM
|
#8
|
Member
Registered: Nov 2005
Distribution: Debian Stable/Testing
Posts: 54
Rep:
|
Quote:
Originally Posted by rushinblue
Is there a firewall restriction within debian that by default blocks this connection?
|
No. If you want a firewall, you can install and configure iptables, but it is not usually necessary.
To install and run the openssh-server, run the following as root:
aptitude install openssh-server
It will set up to start automatically at boot.
|
|
|
10-31-2007, 03:31 PM
|
#9
|
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Rep: 
|
Well since Debian etch they recommend you use Aptitude instead of apt-get and don't switch back and forth.. (just fyi)
to locate the package a quick search will find the name for you ..
aptitude search ssh - Searches package names
or
aptitude search -d ssh - Searches package descriptions
Code:
it-etch:~# aptitude search ssh
p aolserver4-nssha1 - AOLserver4 module: performs SHA1 hashes
p autossh - Automatically restart SSH sessions and tunnels
p clusterssh - administer multiple ssh or rsh shells simultaneously
p crosshurd - Install a Debian system
p dpsyco-ssh - Automate administration of access via ssh
p kdessh - ssh frontend for KDE
p libnet-ssh-perl - Perl extension for secure shell
v libnet-ssh-ruby -
p libnet-ssh-ruby1.8 - pure ruby module that emulates an SSH client
p libpam-ssh - enable SSO behavior for ssh and pam
i openssh-client - Secure shell client, an rlogin/rsh/rcp replacement
i A openssh-server - Secure shell server, an rshd replacement
i = installed
v = virtual package
p = No trace of the package is on your system
c = The package was deleted but the config files remain on the system.
Debian Aptitude how-to
Last edited by farslayer; 10-31-2007 at 03:34 PM.
|
|
|
10-31-2007, 03:34 PM
|
#10
|
LQ Newbie
Registered: Oct 2007
Posts: 10
Original Poster
Rep:
|
Cool, OK, so I need to start using aptitude from now on.
Thanks again everyone for your help!!!
|
|
|
All times are GMT -5. The time now is 08:35 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|