how to install ssh service in linux | Unix Linux Forums | IP Networking

  Go Back    


IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

how to install ssh service in linux

IP Networking


Tags
ssh

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 08-21-2009
hwk07 hwk07 is offline
Registered User
 
Join Date: Aug 2009
Last Activity: 20 September 2009, 10:27 AM EDT
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
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!
Sponsored Links
    #2  
Old 08-21-2009
Leppie's Avatar
Leppie Leppie is offline
Registered User
 
Join Date: Aug 2009
Last Activity: 25 February 2010, 9:31 AM EST
Posts: 75
Thanks: 0
Thanked 0 Times in 0 Posts
what distro are you using? installation depends on the installed distro.
Sponsored Links
    #3  
Old 08-21-2009
hwk07 hwk07 is offline
Registered User
 
Join Date: Aug 2009
Last Activity: 20 September 2009, 10:27 AM EDT
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
ubuntu

ubuntu
    #4  
Old 08-21-2009
Leppie's Avatar
Leppie Leppie is offline
Registered User
 
Join Date: Aug 2009
Last Activity: 25 February 2010, 9:31 AM EST
Posts: 75
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Sponsored Links
    #5  
Old 08-21-2009
thanhdat's Avatar
thanhdat thanhdat is offline
Registered User
 
Join Date: Aug 2008
Last Activity: 5 June 2014, 5:09 AM EDT
Location: Paris
Posts: 120
Thanks: 9
Thanked 2 Times in 2 Posts
To install any package, first find its name

Code:
aptitude search <service name>

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

Sponsored Links
    #6  
Old 08-28-2009
fguy's Avatar
fguy fguy is offline
Registered User
 
Join Date: Aug 2009
Last Activity: 2 April 2010, 12:10 PM EDT
Location: Toronto
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Sponsored Links
    #7  
Old 08-28-2009
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is offline Forum Staff  
Soulman
 
Join Date: Jul 2006
Last Activity: 23 July 2014, 9:01 AM EDT
Location: Berlin, Germany
Posts: 5,371
Thanks: 54
Thanked 228 Times in 221 Posts
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.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Important Service Linux quan0509 Linux 1 08-12-2009 10:17 AM
hosting service that allow me to compile and install my own apache aneuryzma Web Programming 1 06-02-2009 07:26 AM
Configure SMTP service in linux 5.2 jack00423 Linux 5 04-21-2009 06:45 AM
Linux Service ariyurek Programming 1 10-28-2008 05:55 AM
Writing a service in Linux preetham UNIX for Advanced & Expert Users 4 10-24-2002 10:02 PM



All times are GMT -4. The time now is 09:56 AM.