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 11-28-2004, 11:39 AM   #1
tekmorph
Member
 
Registered: Aug 2004
Location: Ohio
Distribution: Mandrake 10.0
Posts: 68

Rep: Reputation: 15
another ssh thread


Hello, and hope you are good. I have googled for hours and found many links, but none seem to help me.I get this error upon trying to ssh into my box, before I post the error. Is it possible to try and ssh into my own pc while sitting i front of it? Can I just
ssh myself@127.0.0.1 ?
when I try I get the
ssh: connect to host 127.0.0.1 port 2112: Connection refused
I have allowed connections on port2112 through Shorewall and Firestarter
here is ssh_config
# Site-wide defaults for various options

# Host *
# ForwardAgent no
# ForwardX11 no
# RhostsAuthentication no
# RhostsRSAAuthentication no
# RSAAuthentication yes
# PasswordAuthentication yes
# HostbasedAuthentication no
# BatchMode no
# CheckHostIP yes
# StrictHostKeyChecking ask
# IdentityFile ~/.ssh/identity
# IdentityFile ~/.ssh/id_rsa
# IdentityFile ~/.ssh/id_dsa
Port 2112
# Protocol 2
# Cipher 3des
# Ciphers aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc
# EscapeChar ~
Host *
ForwardX11 yes
Protocol 2

StrictHostKeyChecking no

I have read a tutorial and many threads on this site as well. Sorry to post another thread pertaining to ssh.I would have rented a book come Monday, but I was excited about setting this up over Thanksgiving weekend. Any help appreciated.
On another note. I was not sure what to uncomment in the ssh_config file.
Thank you.
 
Old 11-28-2004, 11:42 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
those settings are for your CLIENT only. have you changed the server to listen on your non-standard port to? that's sshd_config. and the firewall shouldn't get invovled at all if you're connecting on your looback IP.
 
Old 11-28-2004, 11:47 AM   #3
tekmorph
Member
 
Registered: Aug 2004
Location: Ohio
Distribution: Mandrake 10.0
Posts: 68

Original Poster
Rep: Reputation: 15
no I have not, I will try immediately. Thank you.
 
Old 11-28-2004, 12:13 PM   #4
tekmorph
Member
 
Registered: Aug 2004
Location: Ohio
Distribution: Mandrake 10.0
Posts: 68

Original Poster
Rep: Reputation: 15
I feel really dumb right now, but I can't seem to locate sshd_config. Does this mean the daemon is not installed?
I have ssh files but no sshd files. I have read some more and it seems I have to install the service first,.. I was under the impression it was already installed and Ill I had to do was configure users , ports etc.
Thank you.
 
Old 11-28-2004, 12:20 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
see if it's running: ps ax | grep ssh
 
Old 11-28-2004, 12:29 PM   #6
tekmorph
Member
 
Registered: Aug 2004
Location: Ohio
Distribution: Mandrake 10.0
Posts: 68

Original Poster
Rep: Reputation: 15
Gave this...
6552 ? S 0:01 gedit file:///etc/ssh/ssh_config
6766 pts2 S 0:00 grep ssh
I also issued these commands..
service sshd status
Cannot find sshd service
and
service sshd start
Cannot find sshd service
Thank you.
 
Old 11-28-2004, 12:39 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
pretty conclusive results then... you have no ssh server installed. go get it.
 
Old 11-28-2004, 12:40 PM   #8
tekmorph
Member
 
Registered: Aug 2004
Location: Ohio
Distribution: Mandrake 10.0
Posts: 68

Original Poster
Rep: Reputation: 15
Got it going now,
urpmi sshd gave me this and I said yes.
The following packages have bad signatures:
/mnt/cdrom/Mandrake/RPMS3/sshd-monitor-0.2-2mdk.noarch.rpm: Invalid signature ((SHA1) DSA sha1 md5 (GPG) (MISSING KEY) GPG#26752624 NOT OK)
/var/cache/urpmi/rpms/openssh-server-3.6.1p2-12mdk.i586.rpm: Invalid signature ((SHA1) DSA sha1 md5 (GPG) (MISSING KEY) GPG#26752624 NOT OK)
Do you want to continue installation ? (y/N) y
I got the iso images from a trusted source(LinuxIso.org, but who knows about the mirrors I guess is what I am getting at) so I installed and everything is going great.
But should I be worried about the missing keys?
Very cool thank you.

Last edited by tekmorph; 11-28-2004 at 12:59 PM.
 
  


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
[thread control suggestion] add a "solved" button that the thread starter can click atom LQ Suggestions & Feedback 3 03-24-2005 12:55 PM
Main thread sending notification to child thread rajesh_b Programming 1 09-22-2004 10:15 AM
'Last Thread' 'Next Thread' for 0 Replies and new posts darin3200 LQ Suggestions & Feedback 2 08-16-2004 02:02 PM
configure qt thread issue (just compiled qt w/ -thread option) cleff Linux - Software 8 05-08-2004 12:11 AM
Can a thread starter close the thread? ppuru LQ Suggestions & Feedback 3 07-26-2003 07:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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