LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 10: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, 10:42 AM   #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
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, 10: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, 11:13 AM   #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, 11:20 AM   #5
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
see if it's running: ps ax | grep ssh
 
Old 11-28-2004, 11:29 AM   #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, 11:39 AM   #7
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
pretty conclusive results then... you have no ssh server installed. go get it.
 
Old 11-28-2004, 11:40 AM   #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 11:59 AM.
 
  


Reply



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 11:55 AM
Main thread sending notification to child thread rajesh_b Programming 1 09-22-2004 09:15 AM
'Last Thread' 'Next Thread' for 0 Replies and new posts darin3200 LQ Suggestions & Feedback 2 08-16-2004 01:02 PM
configure qt thread issue (just compiled qt w/ -thread option) cleff Linux - Software 8 05-07-2004 11:11 PM
Can a thread starter close the thread? ppuru LQ Suggestions & Feedback 3 07-26-2003 06:51 PM

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

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