LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 12-07-2010, 07:28 PM   #1
errigour
Member
 
Registered: May 2009
Posts: 366

Rep: Reputation: 6
How do I get ssh working on suse 10.1?


ssh -l admin relik.ath.cx
Permission denied (publickey).
ssh -l admin localhost
The authenticity of host 'localhost (127.0.0.1)' can't be established.
RSA key fingerprint is f3:9e:9a:e7:85:4e:dd:2c:9b:c1:b5:71:e4:ef:a8:12.
Are you sure you want to continue connecting (yes/no)? no
Host key verification failed.

I can't connect outside of my localhost to ssh Im having problems.
Its running, my router is forwarding ssh port 22 of relik.ath.cx
to ssh port 22 of this computer on the network. I'm sure of it.
The firewall is opened and I should be able to receive connections.
But I get this message
Permission denied (publickey).
unless I use localhost but I want outside connections able to login
to my **** account.

I have no way of enabling ssh because I don't know how to install a key and everything I need for ssh to work. could you give me any advice. Maybe walk me through something.
 
Old 12-07-2010, 08:07 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Q: is the sshd daemon running?
It appears the answer is "Yes", but it wouldn't hurt to double-check

Q: can you ssh locally?
Again, it appears the answer is "Yes". Please confirm.

Q: Is there a firewall (ANY firewall, or COMBINATION of firewalls) blocking the ssh port?
Please double-check your Linux firewall, Windows firewall, and anything else that might be a factor.

Q: What SSH client are you using?
<= Since it appears to be connecting, and you're getting a key... the problem appears to be here

If you're on Windows, try Putty.

I'm using Putty 0.58 (pretty old, actually: it's from 2005). It supports *all* the different hosts I've recently tried to connect to (old and new).

If you're using Putty, then click on the "Category" pane, and look at all the "SSH" options. My Preferred SSH protocol is "2". In particular, I do NOT have "use only 1" or "use only 2" enabled: just "2 preferred".

'Hope that helps!

PS:
The correct connect response is "yes":
Quote:
ssh -l admin localhost
The authenticity of host 'localhost (127.0.0.1)' can't be established.
RSA key fingerprint is f3:9e:9a:e7:85:4e:dd:2c:9b:c1:b5:71:e4:ef:a8:12.
Are you sure you want to continue connecting (yes/no)? yes

Last edited by paulsm4; 12-07-2010 at 08:09 PM.
 
Old 12-07-2010, 08:37 PM   #3
errigour
Member
 
Registered: May 2009
Posts: 366

Original Poster
Rep: Reputation: 6
Permission denied (publickey)

your gonna be relieved at this one I got it.
it was two single lines in the sshd_config file

UsePAM no needs to be
UsePAM yes
and I should have never added the line
ChallengeResponseAuthentication=no
in fact I commented that out and it works
great over here. I havent tried it outside
of the computer but the only things that stops
that ususally is brighthouse blocking port 80
 
1 members found this post helpful.
Old 12-08-2010, 07:43 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,632

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by errigour View Post
your gonna be relieved at this one I got it.
it was two single lines in the sshd_config file

UsePAM no needs to be
UsePAM yes
and I should have never added the line
ChallengeResponseAuthentication=no
in fact I commented that out and it works
great over here. I havent tried it outside
of the computer but the only things that stops
that ususally is brighthouse blocking port 80
Uhh, no. The OP clearly posted what they were doing, and paulsm4 correctly identified the problem, and gave the correct solution. The PAM flag is obviously not the issue, otherwise the OP wouldn't be able to log in to localhost, using name/password.

Please read the original posts carefully, so you don't post incorrect responses and confuse the people who are coming here for answers.
 
Old 12-08-2010, 11:15 PM   #5
errigour
Member
 
Registered: May 2009
Posts: 366

Original Poster
Rep: Reputation: 6
actually your wrong

Uhm your wrong that was a localhost issue and it still after I used yes didn't work
It was giving me a message Permission denied (privatekey)
but you could be write about the pam thing and the reason I wrote that is because
after I changed thoughs two lines it started to work perfectly.
 
Old 12-09-2010, 07:34 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,632

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by errigour View Post
Uhm your wrong that was a localhost issue and it still after I used yes didn't work
It was giving me a message Permission denied (privatekey)
but you could be write about the pam thing and the reason I wrote that is because
after I changed thoughs two lines it started to work perfectly.
No, sorry. This may have been right FOR YOU, but didn't address the OP's original question. Again, carefully read what's been posted.
 
  


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
SSH not working after ssh-keygen due to lack of entropy grob115 Linux - Security 8 08-28-2010 11:33 AM
Chroot SSH problem: ssh working, not SFTP & SCP. NaCo Linux - Security 3 02-01-2009 02:23 AM
SSH not working Suse 10.3 ouncya Linux - Newbie 2 10-16-2008 09:01 AM
ssh not working from Putty, but works fine from Live CD (Suse of Fedora) jspeed43 Linux - Networking 6 04-29-2008 09:30 AM
ssh and it not working bickford Linux - Networking 1 07-21-2000 08:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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