LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-27-2003, 08:17 PM   #1
Travis86
Member
 
Registered: Dec 2002
Location: The land of GMT -6
Distribution: OS X, PS2 Linux, Ubuntu, IRIX 6.5
Posts: 399

Rep: Reputation: 31
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.
 
Old 07-27-2003, 08:51 PM   #2
mlp68
Member
 
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333

Rep: Reputation: 40
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
 
Old 07-27-2003, 09:57 PM   #3
Travis86
Member
 
Registered: Dec 2002
Location: The land of GMT -6
Distribution: OS X, PS2 Linux, Ubuntu, IRIX 6.5
Posts: 399

Original Poster
Rep: Reputation: 31
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.
 
Old 07-28-2003, 12:44 AM   #4
mlp68
Member
 
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333

Rep: Reputation: 40
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
 
Old 07-28-2003, 10:09 AM   #5
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
You should have two files: ssh_config (for client) and sshd_config (for server).
 
Old 07-28-2003, 09:23 PM   #6
Travis86
Member
 
Registered: Dec 2002
Location: The land of GMT -6
Distribution: OS X, PS2 Linux, Ubuntu, IRIX 6.5
Posts: 399

Original Poster
Rep: Reputation: 31
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
alternate config file for sshd w/ RH EL3 kmitz Linux - Security 1 01-13-2005 04:46 PM
bash scripting - how to make config file? Neorio Programming 3 10-22-2004 06:39 AM
sshd won't reread the config file - Slackware 9.0 rose_bud4201 Linux - Software 6 05-03-2004 08:14 PM
get .config file for make from builted Image luponec Slackware 1 05-02-2004 01:52 PM
make .config file from bzImage luponec Linux - Software 3 05-02-2004 03:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration