LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-26-2008, 05:07 PM   #1
cantstopnoise
LQ Newbie
 
Registered: Jan 2008
Posts: 7

Rep: Reputation: 0
Ssh


How do you setup ssh to accept connections from putty
 
Old 01-26-2008, 05:18 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
You don't need to setup anything specifically to allow PuTTY. Are you trying to just get the SSH server started in general?

The method to start it depends on the distribution and the init system it uses, so you would need to throw us a bone on that one.
 
Old 01-26-2008, 06:13 PM   #3
cantstopnoise
LQ Newbie
 
Registered: Jan 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Yeah, that's what I need. I run Mandriva, How do you find the init system, just the version?
 
Old 01-26-2008, 06:22 PM   #4
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 56
This may help, I don't use mandriva.
http://club.mandriva.com/xwiki/bin/view/KB/SecureSssh2
 
Old 01-26-2008, 06:53 PM   #5
zoranp
Member
 
Registered: Nov 2007
Location: Belgrade, RS
Distribution: Mandriva 2009.0 X86_64
Posts: 44

Rep: Reputation: 15
# urpmi ssh-server
# /etc/rc.d/init.d/sshd start

should do the trick. Note that ssh server will not let you login as root (security). Log in as ordinary user, then su if you need to.
 
Old 01-27-2008, 12:08 AM   #6
cantstopnoise
LQ Newbie
 
Registered: Jan 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Oof, it dosn't work becuase there is no sshd in etc/rc.d/init.d/ is there soemthing else i need to do. I did install Open ssh. i know rlogin is insecure but i trust my network so maybe is that easiar to start. if not i might try a better distro
 
Old 01-27-2008, 04:46 AM   #7
MoonMind
Member
 
Registered: May 2005
Location: Switzerland
Distribution: Ubuntu
Posts: 448

Rep: Reputation: 38
Try
Code:
# sshd
to see if the server's installed and configured correctly. The configuration files should be in /etc/ssh/ and are ssh_config and sshd_config (at least they are on any box I have access to).

Don't use rlogin. SSH is the way to go.

Depending on your system, your init scripts may be in a different location. Try checking /etc with ls rc* | grep ssh to see if they're somewhere around; there may be a variety of rc*.d folders to look through...

However, in my experience (but I'm using Debian), installing ssh should result in the system offering to configure SSH (client and daemon!) for you...

M.

Last edited by MoonMind; 01-27-2008 at 04:47 AM.
 
Old 01-27-2008, 06:50 AM   #8
zoranp
Member
 
Registered: Nov 2007
Location: Belgrade, RS
Distribution: Mandriva 2009.0 X86_64
Posts: 44

Rep: Reputation: 15
Try as restricted user

$ rpm -qa | grep -i openssh

should list something as

openssh-askpass-common-4.7p1-2mdv2008.0
openssh-askpass-gnome-4.7p1-2mdv2008.0
openssh-4.7p1-2mdv2008.0
openssh-clients-4.7p1-2mdv2008.0
openssh-server-4.7p1-2mdv2008.0

If you have openssh-server in the list, then ssh server is installed and there is /etc/rc.d/init.d/sshd. If this file is missing, first install the server (as root) with

# urpmi ssh-server

then start the server with

# /etc/rc.d/init.d/sshd start
 
  


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
open-ssh vs. commercial ssh (tru64), public-key auth not possible? cf050 Linux - Networking 8 03-28-2012 12:15 PM
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 03:50 AM
setting up an ssh soxy or local ssh tunnel from within an ssh soxy Mangenius Linux - Networking 0 03-05-2007 04:15 PM
ssh -> perl -> spawn background proces hangs ssh session rhoekstra Programming 2 04-25-2006 02:05 AM
Passwordless SSH with SSH commercial server and open ssh cereal83 Linux - General 7 04-18-2006 01:34 PM


All times are GMT -5. The time now is 06:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration