Jump to content
  • Announcements

    • spinynorman

      Mandriva Official Documentation

      Official documentation for extant versions of Mandriva can be found at doc.mandriva.com.   Documentation for the latest release may take some time to appear there. You can install all the manuals from the main repository if you have Mandriva installed - files are prefixed mandriva-doc.
    • paul

      Forum software upgrade   10/29/17

      So you may have noticed the forum software has upgraded !!!
      A few things that have changed. We no longer have community blogs (was never really used) We no longer have a portal page.
      We can discuss this, and decide whether it is needed (It costs money) See this thread: Here
ce_emre

how do I install openssh-server?

Recommended Posts

I use Mandriva 2006 and i have a problem about ssh connection . I want to open the ssh connection port (22.port) , but how i do this ?

Please solve my problem.

 

Thank you.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

root@localhost ~]# iptables -A INPUT -p tcp -m tcp --sport 22 -m state --state ESTABLISHED -j ACCEPT

[root@localhost ~]# ssh 10.0.0.105

ssh: connect to host 10.0.0.105 port 22: Connection refused

[root@localhost ~]#

 

so ,it did not work.

Share this post


Link to post
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?

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
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]

Share this post


Link to post
Share on other sites

OK, so it should be installed. look in /etc/init.d/ for a file called sshd. Does it exist?

Share this post


Link to post
Share on other sites

No ,it doesn't.i search sshd file and result sshd file is only in the /home/usr... and /usr director.

I think i must do firewall setting (open the 22.port for ssh)

 

Thanks...

Share this post


Link to post
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)?

Share this post


Link to post
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.

Share this post


Link to post
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...

Share this post


Link to post
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

×