LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 11-29-2002, 05:59 PM   #1
alany
LQ Newbie
 
Registered: Nov 2002
Posts: 10

Rep: Reputation: 0
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!
 
Old 11-29-2002, 06:02 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
the server configuration will normally work straight out of the box... just install the openssh-server package.
 
Old 11-29-2002, 06:34 PM   #3
alany
LQ Newbie
 
Registered: Nov 2002
Posts: 10

Original Poster
Rep: Reputation: 0
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
 
Old 11-29-2002, 06:35 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
without knowing what configuration you have how are we meant to tell you what's wrong?
 
Old 11-29-2002, 06:43 PM   #5
alany
LQ Newbie
 
Registered: Nov 2002
Posts: 10

Original Poster
Rep: Reputation: 0
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
 
Old 11-29-2002, 07:04 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 11-29-2002, 07:49 PM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608Reputation: 3608
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
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help for setting up X server to use ssh parv Fedora 9 07-22-2015 07:50 AM
help with setting up login to server remotely using ssh LAdProg2005 Linux - Software 2 10-05-2005 02:05 PM
Does anyone have a guide for setting up SSH.Proxy server? martinj Linux - Networking 2 06-18-2005 03:39 AM
Setting up a SSH server Rob2105 Linux - Networking 8 03-17-2004 09:45 AM
setting up ssh punt Linux - General 3 06-11-2001 04:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:28 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