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
# 1  
Old 08-21-2009
how to install ssh service in linux

hello,I am new in linux and want to know how to install ssh service in my computer so that others can connect to it,thank you!
# 2  
Old 08-21-2009
what distro are you using? installation depends on the installed distro.
# 3  
Old 08-21-2009
ubuntu

ubuntu
# 4  
Old 08-21-2009
Debian based distro's use apt-get to install packages.
To install the SSH server use this command:
Code:
sudo apt-get install openssh-server

and likewise to install the SSH client the following command:
Code:
sudo apt-get install openssh-client

alternatively you could use one of the graphical frontends. Ubuntu installs Gnome as default desktop environment, so you could use the Synaptic package manager (System > Administration > Synaptic Package Manger). there is even the Add/Remove tool under the Applications menu.
# 5  
Old 08-21-2009
To install any package, first find its name
Code:
aptitude search <service name>

Then use
Code:
apt-get install <package name>

# 6  
Old 08-28-2009
I'm using debian lenny on a wireless network behind a linksys ADSL router. just using a text interface (bash). I am using a manual tcp/ip configuration with fixed ip.

I tried apt-get install openssh-server and i get the following output.

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package openssh-server is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package openssh-server has no installation candidate

This is the second time I tried, The first time I tried I think the message may have been different. maybe package not found at the end sorry but I'm not certain about that, didn't write down the message.

I eventually found my way to /etc/apt.sources.list and noticed http://security.debian.org/ I could ping this address no problem.

So I am not sure where to go from here. I actually have another thread in the tcp/ip forum where I question whether my tcp/ip configuration is complete.
# 7  
Old 08-28-2009
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.

Previous Thread | Next Thread
Test Your Knowledge in Computers #982
Difficulty: Medium
NetBSD is a free and open-source Unix-like operating system based on the Berkeley Software Distribution (BSD).
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