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.
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.
|
 |
11-29-2002, 05: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, 06:02 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
the server configuration will normally work straight out of the box... just install the openssh-server package.
|
|
|
11-29-2002, 06: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, 06:35 PM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
without knowing what configuration you have how are we meant to tell you what's wrong?
|
|
|
11-29-2002, 06: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, 07:04 PM
|
#6
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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, 07:49 PM
|
#7
|
Moderator
Registered: May 2001
Posts: 29,415
|
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
|
|
|
All times are GMT -5. The time now is 06:28 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
|
|