Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
| 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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-29-2002, 04:59 PM
|
#1
|
|
LQ Newbie
Registered: Nov 2002
Posts: 10
Rep:
|
Setting up an SSH server
Hello:
I've used ssh as client before and now I want to set up an ssh server so other people on the network can ssh instead of telnet. I've checked the ssh daemon and it is running. I've successfully used ssh on this system as client and now I want to set up the same system to be an ssh server.
I think there's some files that need to be modified in order for this to work, mainly in /etc/ssh/. could you anyone please share your insights? Thanks!
|
|
|
|
11-29-2002, 05:02 PM
|
#2
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,692
|
the server configuration will normally work straight out of the box... just install the openssh-server package.
|
|
|
|
11-29-2002, 05:34 PM
|
#3
|
|
LQ Newbie
Registered: Nov 2002
Posts: 10
Original Poster
Rep:
|
I think I have openssh-server package installed on the system. I checked this by running "#rpm -qa openssh-server" command and it returns "openssh-server-3.4p1-2". I started the sshd by using command "#/sbin/service sshd start" and it started okay. But I still couldn't login from other client computer. This client computer has used ssh client successfully.
There's probably some configuration setting that I need to use. Please advise.
Thanks
|
|
|
|
11-29-2002, 05:35 PM
|
#4
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,692
|
without knowing what configuration you have how are we meant to tell you what's wrong?
|
|
|
|
11-29-2002, 05:43 PM
|
#5
|
|
LQ Newbie
Registered: Nov 2002
Posts: 10
Original Poster
Rep:
|
thanks for your reply. what configuration can I tell you? The hosts are properly networked as I have used ftp between hosts. please let me know what you need and I can find out. thanks
|
|
|
|
11-29-2002, 06:04 PM
|
#6
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,692
|
well you're config file should be /etc/ssh/sshd_config or something very similar. also check "dmesg" or the contents of /var/log/messages on the server when a log in fails to try to find why it failed.
|
|
|
|
11-29-2002, 06:49 PM
|
#7
|
|
Moderator
Registered: May 2001
Posts: 24,786
|
But I still couldn't login from other client computer.
If you made your secret/public key for your account on the box and swapped pub bits and it still doesn't work try to append "-v" 2 or 3 times to your ssh command, and it'll spit out insanely verbose messages. That may help determining what's wrong.
On th server side if sshd is syslogging (error)messages will be in /var/log/messages or secure or sshd.log depending on how you set up /etc/syslog.conf
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:27 AM.
|
|
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
|
|