LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 08-05-2007, 12:00 AM   #1
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 551

Rep: Reputation: 30
Thumbs up Secure Shell Server Configuration Help


Hello all expert Linux administrator, i truly noob to Linux world.

I am a IT student. Therefore, i would like to learn how to configure ssh server. I have putty and ssh installed bu ti don't know how to configure it.

I have google it but i don't really understand.

Therefore, i post this thread in order to get some simple help.

Thanks for your help.

Your help is greatly appreciated by me and others.
 
Old 08-05-2007, 01:13 AM   #2
camh
Member
 
Registered: Feb 2005
Distribution: Slack/Debian
Posts: 163
Blog Entries: 2

Rep: Reputation: 33
The configuration file should be at /etc/ssh/sshd_config
 
Old 08-05-2007, 10:18 AM   #3
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,652

Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
man sshd_config
 
Old 08-06-2007, 02:53 AM   #4
mehxh1979
LQ Newbie
 
Registered: Aug 2007
Posts: 6

Rep: Reputation: 0
use keygen-ssh command
 
Old 08-07-2007, 01:37 AM   #5
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 551

Original Poster
Rep: Reputation: 30
Can u show me some step by step guide ?
 
Old 08-07-2007, 02:15 AM   #6
adam_blackice
Member
 
Registered: Apr 2006
Location: /*Egypt */ //cairo
Distribution: Ubuntu 7.04 , SLED 10 , Fedora , RHEL 5
Posts: 312

Rep: Reputation: 32
you can configure it by editing the file /etc/ssh/sshd_config you can find there various of options to enable and disable it
 
Old 08-07-2007, 08:46 AM   #7
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,652

Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
camh and I gave you all the information you `should` need. combine that with Google and you should be golden. We're not here to hold your hand, so instead of waiting to see if some other poster will decide to, you should do the reading we've pointed you at and try to do it yourself. You'll learn far more that way.
 
Old 08-07-2007, 09:03 AM   #8
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Quote:
camh and I gave you all the information you `should` need. combine that with Google and you should be golden. We're not here to hold your hand, so instead of waiting to see if some other poster will decide to, you should do the reading we've pointed you at and try to do it yourself. You'll learn far more that way.
True, but instead of just saying "here's a coin, go make a million out of it" you should throw at least one or two instant-helpful things, because after all this is a forum where it's usual that those with knowledge share it with those who don't. LQ isn't a school, it's a Linux-related forum. For schoolworks there are different "rules" about how the answers should be given (because in that case the student should do her/his own work, and the teachers should aid the student in doing that, but not do it for the student). I doubt setting up an SSH server is a schoolwork (or if it is, I believe the student should already be familiar with the simple things such as man-pages or configuration files), so there's no point in being difficult.

For a start: there are several text-editors in your system, which you can use to edit plain-text configuration files. sshd ("SSH server") has it's configuration settings in a plain-text file /etc/ssh/sshd_config that you can edit. The editor you choose is not important, but editing sshd configuration can't be done as unprivileged user, so you need to edit the file as root. This can be achieved in several ways, but basically you'll just need to get a text editor open with root privileges, then open the file mentioned earlier, do the changes, save and exit. From the commandline this should do (because vi or vim is a text editor found in almost if not every UNIX[-like] system): open a terminal emulator, or log into a console, and command this
Code:
su
*type root password here, it's not displayed on the screen while typing*
vi /etc/ssh/sshd_config
Now the file should be opened in front of you. Press 'i' to activate INSERT mode (at first Vi(m) is in command mode where you can't write). Use arrows to go around the file, delete, write and replace whatever you want. Once finished, press ESC (to get back to command mode), then type
Code:
:wq
to write-quit (save the file, then exit the editor) and you're done.

The file is somewhat self-descriptive, but if you want more information, you can do a web search. Also the man pages found on most if not all UNIX[-like] systems may help you out; commanding the previously mentioned line like below shows you (if available) the man page of sshd_config configuration file:
Code:
man sshd_config
Use arrow keys to scroll, q to quit.

I'm not 100% sure (can't remember, actually) if you need to restart the sshd service after editing the configuration, but it doesn't harm to do that. This depends a bit on the system, so in this case you will want to consult your distributions' website, help documentation or just do a web search for how to start, stop and restart (in this case restart) services on the system.

Last edited by b0uncer; 08-07-2007 at 09:05 AM.
 
  


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
SSH Secure Shell 3.2.9 bglover3 Linux - Enterprise 1 06-21-2007 04:30 PM
secure shell sunhui Linux - Software 3 08-17-2006 10:50 AM
how can I secure my nis server ?can I use openSSL to secure it form sniffing ? abhi_raj Linux - Networking 1 07-10-2006 07:19 AM
remoste shell and secure shell suchi_s Programming 2 12-21-2004 07:31 AM
secure shell zepplin611 Linux - Software 5 03-03-2004 10:46 PM


All times are GMT -5. The time now is 05:47 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration