Ask Your Question

public putty key not working on fedora 25

asked 2017-01-10 10:45:33 -0500

afodata gravatar image

I use putty authentication agent (pageant) and a private/public key combo to log into various fedora servers. This simple process has worked fine for many years up until I tried it on fedora 25. I cannot figure out why my key is not working. There is no useful information in the messages log. Just ...

Jan 10 10:34:40 servername audit: USER_LOGIN pid=4209 uid=0 auid=4294967295 ses=4294967295 msg='op=login acct="root" exe="/usr/sbin/sshd" hostname=? addr=x.x.x.x terminal=ssh res=failed'

Thanks in advance for any help on this matter.

edit retag flag offensive close merge delete


What is the output of systemctl status sshd in Fedora?

Axel Sommerfeldt gravatar imageAxel Sommerfeldt ( 2017-01-12 04:35:37 -0500 )edit

โ— sshd.service - OpenSSH server daemon Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2017-01-10 10:34:14 CST; 2 days ago Docs: man:sshd(8) man:sshd_config(5) Process: 4205 ExecStart=/usr/sbin/sshd $OPTIONS (code=exited, status=0/SUCCESS) Main PID: 4206 (sshd) Tasks: 1 (limit: 4915) CGroup: /system.slice/sshd.service โ””โ”€4206 /usr/sbin/sshd

afodata gravatar imageafodata ( 2017-01-12 18:35:01 -0500 )edit

Is there any option to enable verbose log in Putty? Otherwise I would try to export the private key in openssh format (AFAIK the Putty key editor can do this), install this in a Linux workstation (e.g. booted from a Live-USB), and try to connect to Fedora 25 with "ssh -vvv <user>@<ip>". Using "-vvv" will give you verbose log output which could give us a clue what is going on.

Axel Sommerfeldt gravatar imageAxel Sommerfeldt ( 2017-01-13 01:17:42 -0500 )edit

I don't have a problem connecting via ssh, so I am sure there will be no errors if I do an ssh connection. A normal ssh connection via command line does not use a public key. It uses password exchange. The problem is with putty using pageant to authenticate my public key. - per your suggestion, I turned on putty logging but it was empty ... apparently the problem is with the server or pageant. - per your suggestion, I exported the key in open ssh format but then pageant could not read it

afodata gravatar imageafodata ( 2017-01-13 08:59:17 -0500 )edit

I must confess I'm confused. As far as I have understand you, you have a Fedora 25 server setup with public/private key SSH authentication. You are not able to log into this server via Putty, and Putty is not a big help to find out why. So my idea was to use a Linux distribution instead of Windows, and using command line ssh instead of Putty, since ssh offers more hints what is going wrong when used with option -vvv. Now you write "ssh connection via command line does not use a public key". I thought that your Fedora 25 server is actually set up to use public/private key authentication?

Axel Sommerfeldt gravatar imageAxel Sommerfeldt ( 2017-01-14 07:44:44 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-07-11 10:57:26 -0500

jjelen gravatar image

There is not enough information in the question to answer the question. Please, turn on debug logs in the server (write LogLevel DEBUG3 into /etc/ssh/sshd_config, restart the sshd service systemctl restart sshd) and try to connect once more. Then have a look into the /var/log/secure and post the logs.

Hopefully, you will be able to get why it failed, if not, let me know and I will be able to get more details from that logs.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-01-10 10:44:41 -0500

Seen: 429 times

Last updated: Jan 10 '17