Visit Our UNIX and Linux User Community


how to install ssh service in linux


 
Thread Tools Search this Thread
Special Forums IP Networking how to install ssh service in linux
# 8  
Old 08-28-2009
Quote:
Originally Posted by DukeNuke2
have a look for the right installation target with:
Code:
sudo apt-cache search ssh

this should bring you the name of the package (something like "ssh..."). after that use the command mentioned by the other posters to install the package.
Thanks, ok I did that and the following output as returned, which doesn't look too encouraging. If this is normal, then I can probably figure it out.

auth2db-filters - Auth2db defaults filters pack
ctorrent - BitTorrent Client written in C++
libss10.9.8 - SSL shared libraries
openssh-client - secure shell client, an rlogin/rsh/rcp replacement
# 9  
Old 08-28-2009
hmmm... looks strange. i don't know if the packages are in the same repository. maybe you need to check your sources in /etc/apt/sources.list
# 10  
Old 08-28-2009
Yep, it's definitely missing the openssh-server package. Could you post your /etc/apt/sources.list? The entry for the security updates isn't enough to install software.
Also, what's happening if you do apt-get update or aptitude update?
# 11  
Old 08-28-2009
Quote:
Originally Posted by pludi
Yep, it's definitely missing the openssh-server package. Could you post your /etc/apt/sources.list? The entry for the security updates isn't enough to install software.
Also, what's happening if you do apt-get update or aptitude update?
Here is my sources.list...

Code:
# deb cdrom:[Debian GNU/Linux 5.0.2a _Lenny_ -Official i386 NETINST Binary-1 2$

#deb cdrom:[Debian GNU/Linux 5.0.2a _Lenny_ -Official i386 NETINST Binary-1 20$

deb http://security.debian.org/ lenny/updates main
deb-src http://security.debian.org/ lenny/updates main

I don't have the net install cd in the drive
there was an abortive attempt to connect to the mirror I guess during install, which failed because of network issues.
As mentioned I can ping security.debian.org no problem.

I can't try apt-get update or aptitude update right now, I'll try it later today if sources.list doesn't give us an answer.

This is my first attempt at package management. I haven't tried aptitude yet. wiki.debian.org seems the best place to go for documentation, so I'll be looking into apt and aptitude today.

Thanks.
# 12  
Old 08-28-2009
You're missing the URL for the main repository. Do this:
Code:
$ echo "deb http://http.us.debian.org/debian lenny main contrib non-free" >> /etc/apt/sources.list
$ echo "deb http://non-us.debian.org/debian-non-US lenny/non-US main contrib non-free" >> /etc/apt/sources.list
$ apt-get update
$ apt-get install openssh-server

This will add 2 main repositories, update the package list, and install openssh-server. Note: the '$' is not part of the command line but indicates the prompt.
# 13  
Old 08-28-2009
Quote:
Originally Posted by pludi
You're missing the URL for the main repository. Do this:
Code:
$ echo "deb http://http.us.debian.org/debian lenny main contrib non-free" >> /etc/apt/sources.list
$ echo "deb http://non-us.debian.org/debian-non-US lenny/non-US main contrib non-free" >> /etc/apt/sources.list
$ apt-get update
$ apt-get install openssh-server

This will add 2 main repositories, update the package list, and install openssh-server. Note: the '$' is not part of the command line but indicates the prompt.
Thanks I'll be able to deal with that this evening, and I'll post back with the results. I'm curious, does the fact that sources.list was missing information suggest something went wrong with my install, or is adding this information as you describe a normal part of the process?
# 14  
Old 08-28-2009
The missing entry is a sign for an install gone wrong (although I'm not sure which step is responsible for that). It was possibly caused by the network issue you mentioned. But as long as you add those lines, it won't cause a problem later on.

Previous Thread | Next Thread
Test Your Knowledge in Computers #764
Difficulty: Medium
A cache miss is a failed attempt to read or write a piece of data in the cache, which results in a main memory access with much shorter latency and increased speed.
True or False?

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Allow AD service account SSH to Linux systems without 2FA

I have Windows AD server and all of the linux computers are joined to AD. Recently, 2FA has been activated, I wish to exclude some of the domain service accounts from 2FA # less /etc/pam_radius_acl.conf sshd:* # /etc/pam.d/sshd auth required pam_sepermit.so auth requisite... (0 Replies)
Discussion started by: davidpar007
0 Replies

2. Solaris

Helpme !! ssh service in maintenance mode

Hi Guys, Virtual Machine - Solaris 10 ssh service is in maintenance mode, when i tried to disable it it got disabled but when i enabling it ( svcadm enable ssh) it is coming in maintenance mode...... Pls help (10 Replies)
Discussion started by: saurabh84g
10 Replies

3. Programming

doing a socket connection using ssh service

Trying to establish a socket connection using ssh service - but want to use different login name for ssh than what currently logged in as - if under shell know to use ssh -l <login-name> host - however - not sure how to tell o.s. to use different login name when use connect command (2 Replies)
Discussion started by: clcoh11
2 Replies

4. Solaris

ssh service location on Solaris 8

Hi where can i find the ssh service on solaris 8 if "sshd" it is not available on /etc/init.d? i want to restart the service. i did a "which" and i found this. is this the right path? i want to double check since this is a prod server. bash-2.03# which sshd /usr/sbin/sshd Thanks (4 Replies)
Discussion started by: hrist
4 Replies

5. UNIX for Dummies Questions & Answers

Problem with the SSH & Telnet Service

Hi gurus of Unix, I am newby in Unix, I need to Know the following. How I know if SSH & Telnet service is UP in Solaris? Please I appreciate your answer Regard Andres (2 Replies)
Discussion started by: andresguillen
2 Replies

6. Web Development

hosting service that allow me to compile and install my own apache

Is there any cheap hosting service that allow me to compile and install my own apache and php ? thanks (1 Reply)
Discussion started by: aneuryzma
1 Replies

7. Solaris

could not able to start the ssh service plz suggest

Hi Gurus I could not able to start the ssh service plz suggest root@bics-uatsrvr-01 # svcs -x ssh svc:/network/ssh:default (SSH server) State: offline since Thu May 28 04:12:02 2009 Reason: Service svc:/system/filesystem/usr:default is not running because a method failed. ... (1 Reply)
Discussion started by: girish.batra
1 Replies

8. UNIX for Dummies Questions & Answers

ssh install

hi , i am trying to install ssh on solaris8 i have downloaded openssh. if anyone have installed openssh before , i like to know if there are anything else needed to install it. Some web sites says you need zlib and so on. i am confused. (1 Reply)
Discussion started by: oppai
1 Replies

Featured Tech Videos