LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Setting up an SSH server (https://www.linuxquestions.org/questions/linux-general-1/setting-up-an-ssh-server-36828/)

alany 11-29-2002 05:59 PM

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!

acid_kewpie 11-29-2002 06:02 PM

the server configuration will normally work straight out of the box... just install the openssh-server package.

alany 11-29-2002 06:34 PM

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

acid_kewpie 11-29-2002 06:35 PM

without knowing what configuration you have how are we meant to tell you what's wrong?

alany 11-29-2002 06:43 PM

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

acid_kewpie 11-29-2002 07:04 PM

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.

unSpawn 11-29-2002 07:49 PM

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 03:04 PM.