LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   How do I get ssh working on suse 10.1? (https://www.linuxquestions.org/questions/suse-opensuse-60/how-do-i-get-ssh-working-on-suse-10-1-a-848949/)

errigour 12-07-2010 07:28 PM

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.

paulsm4 12-07-2010 08:07 PM

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

errigour 12-07-2010 08:37 PM

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

TB0ne 12-08-2010 07:43 AM

Quote:

Originally Posted by errigour (Post 4184176)
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.

errigour 12-08-2010 11:15 PM

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.

TB0ne 12-09-2010 07:34 AM

Quote:

Originally Posted by errigour (Post 4185507)
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.


All times are GMT -5. The time now is 09:32 AM.