Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
07-27-2003, 08:17 PM
|
#1
|
Member
Registered: Dec 2002
Location: The land of GMT -6
Distribution: OS X, PS2 Linux, Ubuntu, IRIX 6.5
Posts: 399
Rep:
|
I can't make sshd like my config file
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.
|
|
|
07-27-2003, 08:51 PM
|
#2
|
Member
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333
Rep:
|
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.
Hope it helps,
mlp
|
|
|
07-27-2003, 09:57 PM
|
#3
|
Member
Registered: Dec 2002
Location: The land of GMT -6
Distribution: OS X, PS2 Linux, Ubuntu, IRIX 6.5
Posts: 399
Original Poster
Rep:
|
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.
|
|
|
07-28-2003, 12:44 AM
|
#4
|
Member
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333
Rep:
|
Hm. The ssh_config is, on my Redhat system, the configuration file for the *client*. It has stuff like
Quote:
# 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.
Good luck,
mlp
|
|
|
07-28-2003, 10:09 AM
|
#5
|
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552
Rep:
|
You should have two files: ssh_config (for client) and sshd_config (for server).
|
|
|
07-28-2003, 09:23 PM
|
#6
|
Member
Registered: Dec 2002
Location: The land of GMT -6
Distribution: OS X, PS2 Linux, Ubuntu, IRIX 6.5
Posts: 399
Original Poster
Rep:
|
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?
Thanks for your help.
|
|
|
All times are GMT -5. The time now is 01:15 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|