MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I just did an FTP install for Mandriva 2006. However, I can't ssh to the server. I can ssh @localhost but can't from the outside. SSH is enabled in the firewall, and in the menu where one can choose services to run @ boot it's ticked on to start. Any tips?
When you attempt to ssh to the machine from another system, does the connection simply fail to connect, or are you just unable to authenticate?
Do you have physical access to the system in question? If so, do you have access to another system on the same network segment, can you ssh to this server from said system?
When you attempt to ssh to the machine from another system, does the connection simply fail to connect, or are you just unable to authenticate?
Do you have physical access to the system in question? If so, do you have access to another system on the same network segment, can you ssh to this server from said system?
Happy Hunting,
From a SuSE box and from my XP box over PuTTY, I get a "Server unexpectedly closed connection".
I assume that their is no firewall between these clients and your server.
Are you accessing the system by host name or IP address? May I suggest that you attempt to establish the ssh connection using an account other than root?
Might I suggest using the -vvv switch and posting the results. (i.e. ssh -vvv user@1.1.1.1 )
I assume that their is no firewall between these clients and your server.
Are you accessing the system by host name or IP address? May I suggest that you attempt to establish the ssh connection using an account other than root?
Might I suggest using the -vvv switch and posting the results. (i.e. ssh -vvv user@1.1.1.1 )
Happy Hunting,
Thanks for the help.
No luck:
OpenSSH_4.2p1, OpenSSL 0.9.8a 11 Oct 2005
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to xxx.xxx.xxx.xxx [xxx.xxx.xxx.xxx] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type -1
ssh_exchange_identification: Connection closed by remote host
I don't understand why Mandriva shuts it off. No firewall other than the one on Mandriva, SSH is ticked, and ps and netstat ssh is running and being listened for on 22.
Thanks again.
xxx is the server's ip address.
Last edited by lt_wentoncha; 06-24-2006 at 10:59 PM.
It refers to one possible solution being a modification to either the:
/etc/host.allow
or
/etc/host.deny
I also have heard people blame this error on an excess of hung ssh sessions, so it may be worth while to attemt to stop and start the sshd to see if this has any impact.
It refers to one possible solution being a modification to either the:
/etc/host.allow
or
/etc/host.deny
I also have heard people blame this error on an excess of hung ssh sessions, so it may be worth while to attemt to stop and start the sshd to see if this has any impact.
Make sure you edit the file as root, so you can save the changes.
Also, did you generate a key-pair on the server ( ssh-keygen ). Also, make sure that the service is running, and port 22 is open, unless you configured it to use a different port.
One thing that can cause this error is if you performed a fresh install on a host, and so the key pair is different then the last time you connected to the server. If this is the case, delete the entry from the ~/.ssh/known_hosts file. Or if the servers key pair is changed, delete the server's known_hosts entry from your remote hosts.
I would recommend that you always log in as a user and disable root login. If only one user logs into the server using ssh, then consider adding your username to the AllowUsers entry in /etc/ssh/sshd_config. This will forbid any other user from logging in. You can add more users to the end of this line, or use AllowGroups instead. If there is an AllowUsers entry, then this will trump any AllowGroups entry. If you use AllowUsers, you don't have to list each system user to deny.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.