Jump to content

how do I install openssh-server?


ce_emre
 Share

Recommended Posts

i guess that the port is closed (blocked ) by your firewall , so to open it you just do as a root , and place this rule in your firewall script at the start .... pls give more details !

 

#iptables -A INPUT -p tcp -m tcp --sport 22 -m state --state ESTABLISHED -j ACCEPT

Link to comment
Share on other sites

You can use the command line using:

 

ssh -l username ip_address

 

where username is the user that you want to use to login with and where ip_address is the ip address of the machine you want to connect to.

 

If you want a gui-based app, use an app called putty, as it's really good for ssh.

Link to comment
Share on other sites

Are you sure sshd is running on the system you're trying to connect to?

 

service sshd status

 

and also:

 

netstat -tan

 

to see if port 22 is listening. And if it's not:

 

service sshd start

 

and to make sure it starts at bootup:

 

chkconfig sshd on

 

does that help?

Link to comment
Share on other sites

Thanks for your helping ianw1974 , but it did not work.I think sshd isn't running on my system and port 22 isn' listening.

 

[root@localhost ~]# service sshd status

Cannot find sshd service

Usage: service -[Rfshv] SERVICE ARGUMENTS

-f|--full-restart: Do a fullrestart of the service.

-R|--full-restart-all: Do a fullrestart of all services currently running.

-s|--status-all: Print a status of all services.

-d|--debug: Launch with debug.

-h|--help: This help.

-v|--version: Print version.

 

 

 

[root@localhost ~]# service sshd start

Cannot find sshd service

Usage: service -[Rfshv] SERVICE ARGUMENTS

-f|--full-restart: Do a fullrestart of the service.

-R|--full-restart-all: Do a fullrestart of all services currently running.

-s|--status-all: Print a status of all services.

-d|--debug: Launch with debug.

-h|--help: This help.

-v|--version: Print version.

 

version 1.14

Link to comment
Share on other sites

OK, cool, so let's install it. I'm assuming Mandriva, so:

 

urpmi ssh-server

 

will install ssh. Then you can do:

 

chkconfig sshd on

 

and:

 

service sshd start

 

and then try to connect again.

Link to comment
Share on other sites

[root@localhost ~]# urpmi ssh-server

The following packages can't be installed because they depend on packages

that are older than the installed ones:

openssh-server-4.2p1-1mdk

Continue installation anyway? (E/h) E

her?ey zaten kurulu

The following package names were assumed: openssh-server

 

[root@localhost ~]# urpmi openssh-server

The following packages can't be installed because they depend on packages

that are older than the installed ones:

openssh-server-4.2p1-1mdk

Continue installation anyway? (E/h) e

her?ey zaten kurulu

[root@localhost ~]#

 

"her?ey zaten kurulu" is the meaning that allthings already established.

Link to comment
Share on other sites

If you have firewall enabled, just go to System/Configuration/Configure Your Computer. Then in Security, go for the firewall option. Then enable the option for SSH (port 22) and you'll be OK.

 

[this post has been merged from another thread - tyme]

Link to comment
Share on other sites

I have merged the marked posts above into this thread as they are part of the same question/problem. Please keep related questions to one topic when attempting to solve a singular problem.

 

On the topic:

it appears that you do not have ssh properly installed, and so even if you open the port 22 in your firewall you still won't be able to access ssh because it's not installed and it's not running.

 

As such, we need to get ssh installed. Are all your sources/repositories updated? Have you upgraded any packages manually (in a manner other than using the official repositories or outside of urpmi)?

Link to comment
Share on other sites

I was just coming to that conclusion too, perhaps do:

 

urpme ssh-server

 

to remove it, and then reinstall it again, but make sure you have all your urpmi sources set up as tyme mentions. You need main/contrib/updates at least.

Link to comment
Share on other sites

I use Mandriva 2006 and I want to use ssh command but ssh server hasn't installed on my machine yet.So i must install openssh-server .(openssh-4.2pl has downloaded on my machine.i think (maybe not) only client side has downloaded not server side)

How do i install openssh server ?

 

Please help me...

 

Thanks...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...