MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
You need to enable the service in the control centre under system. I am not sure for 9.2, but in 10 you needed to select either the ssh server package specifically or the general 'newtwork server' group to have the package installed originally.
I assume you do not have it yet. Try 'urpmi openssh-server', if there are complaints, try 'urpmi.update -a' first to update your sources.
These are the 3 packages in Mdk10, if you want to do it by hand:
Then just run sshd, '/etc/init.d/sshd start', and you can log in using putty or whatever.
Security wise, you want to check the ssh box in the shorewall config (this is port 22 if you want to add it by hand). In /etc/ssh/ there is a config file where you can do things like block users and such. The file is sshd_config.
For example, i only allow one user to log in, so I have these lines in sshd_config:
The DenyUsers is redundant if you use AllowUsers. In this case, only the user dt23 can log in to my computer via ssh. You can specify specific IP addresses as wel.
You could try connecting from your Mandy box with "ssh localhost". If that works then it's safe to assume the daemon is running OK, in which case the most likely cause of your problem is on the Windows side. Perhaps you have a firewall running there as well or you haven't configured the putty client correctly. If all else fails, knoppix loads an ssh client and server by default, so makes it easy to test both ways, even with X11 forwarding (which requires commercial software under Windows.) I was playing an OpenGL game using X11 forwarding last night, amazed me; just needed audio forwarding and would have been perfect, hehe.
Anyway, everything worked pretty smoothly for me, so afraid I can't be much help. Maybe someone else here has had similar problems and knows how to resolve them.
Interesting... when I 'ssh localhost' on the Mandy (I like that name :P) box, I get a password prompt for localhost... however, when I type the root pw, I get "Permission denied (publickey,password,keyboard-interactive)".
Is there a need to set up a specific password for ssh?
Are you logged in as root? It defaults to current user if one isn't specified. Should have prompted you with something like "dt23@localhost's password:" Maybe try using "ssh root@localhost" instead. If that doesn't work it's some kind of problem with accounts. Again, I didn't have any problems using Mandy's default setup -- didn't edit any config files or anything -- so really can't be of much help, sorry.
Yep. Logged in as root. When I type 'ssh roo@locahost' I get prompted for the password and when I enter the root password I get "Permission denied, please try again", until I get the "Permission denied (publickey,password,keyboard-interactive)".
Thanks for trying. Maybe it's something with the ssh config that someone else might know about?
There's a PermitRootLogin option in sshd_config that's enabled by default if you installed from the 9.2 distribution disks but disabled by default if you downloaded the packages separately (or installed from source.) Might be worth checking that and/or trying to log in with a regular user account. If still nothing then it's got to be a problem with authentication/encryption. GL
Another program on windows you can try is ssh32. Putty didn't work for me on the network at work, ssh32 did work however. Putty would work if the computer was hooked up directly to a cable modem however.
Correction, I no longer get the "Network Error: Connection Refused" error. I think that might have had to do with my dhcp settings getting tweaked when I lost connection overnight. (hate when that happens)
I basically still get the black prompt that appears after I try to login with Putty and then it goes away after a few seconds.
I switched the setting on Putty from 'Close window on clean exit' to 'Never'. Now it say 'Connection closed by remote host'. So it seems that ssh or my linux machine is not accepting remote connections...