Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
I'm trying again to get SSH going on my Playstation 2. I'm working with OpenSSH 2.9p1 and reading SSH, The Secure Shell: the Definitive Guide (by O'Reilly, of couse).
I tried to run sshd, but it gave me a buch of error messages, so I redid the whole ssh_config file using my new book as a guide. I tried sshd again, and it gave me the same error message. I bumped everything down a line, and still gave me the same error messages. The line numbers weren't changed. I tried "sshd -f [path]", but I got the same message.
I don't think sshd is currently running, but am not 100% sure.
I would post the entire config file, but I don't have any sort of network access to my PS2 right now, and a it doesn't have a floppy drive or any other sneakernet device.
Didn't the distro of your openssh come with a pre-made config file? I recall another post with a similar problem, but I'm sure that the config file is version-specific, so go with your pre-made file rather that that book.
You mention "ssh_config", but the config file for sshd is usually in /etc/ssh/sshd_config. The default is normally usable, if at all, it isn't strict enough and allows to much in.
Your profile says that you have redhat, why don't you re-install the sshd RPM (openssh-server) and start with the original sshd config file? If that doesn't work, post the output of sshd when it fails.
Hmmm... There's a defualt config file? I guess I must have overwritten it. Maybe I'll ask on the PS2 Linux forum if there is a default config file. Why couldn't I make my own config file that would work just as well as the default one?
The name of the config file is "/etc/ssh/ssh_config" (not "/etc/ssh/sshd_config"). I believe that's the way it came. I don't know why it's that way. PS2 Linux is based on a version of Red Hat.
Hm. The ssh_config is, on my Redhat system, the configuration file for the *client*. It has stuff like
# Host *
# ForwardAgent no
# ForwardX11 no
# RhostsAuthentication no
# RhostsRSAAuthentication no
in there. If you find anything like that, you'll know you're looking at the client config file.
That brings me to my other question - why can't you go the other way and ssh from the PS2? That should work, no?
Maybe you should actually post a few key lines from the file you made. It might be something obvious.
I haven't tried the PS2 w/ Linux, but does the USB port not support floppies and USB drives? Of course the network would be much better, but to pull a few files off in a situation like this? Maybe it's worth checking out.
Ok. I just moved the contents of ssh_config to sshd_config, and it looks like it's trying to work now.
Unfortunately, it won't read the host key. When I run sshd, it says "Warning: Unprotected private key file!" and "This private key will be ignored." I have HostKey set to "/etc/ssh/ssh_host_key.pub", so I assume that it looks at both keys. I've got the permissions for ssh_host_key set to 600 and the permissions for ssh_host_key.pub to 644. That's the way it should be, isn't it? What am I doing wrong?