Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-16-2008, 01:08 PM   #1
LQ Newbie
Registered: Mar 2008
Posts: 15

Rep: Reputation: 0
Log in problem from Putty Client

My Server is highly secured. I used to access my data from SSH Putty Client. I have set public in to my server and there was private key in my PC. Unfortunately my PC is formatted and Private key is lost. How can i Solve my problem? Now I have a copy of the public key. Can i recover private through my available public key? Is there a way to keep newly generated Public key in my server?
Old 11-16-2008, 01:55 PM   #2
LQ Newbie
Registered: Jan 2005
Location: fargo
Distribution: Slack man since ver 3
Posts: 9

Rep: Reputation: 0
i am fairly certain that if you loose a private key, it is gone. why not just generate a new key? also as a side note, encryption is only a small part of making a system secure. closing as many ports as possible and keeping as few processes running as possible are a couple more steps. some of the most secure linux servers are running 2.2 and 2.4 kernels.
Old 11-16-2008, 01:59 PM   #3
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,945
Blog Entries: 14

Rep: Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163
Not quite sure what you're trying to do.

1) No you can't generate private key by knowing public key. If you could it would invalidate the whole idea of public/private key security.

2) The public key can be stored in a file called authorized_keys in the remote user's $HOME/.ssh directory. This is called establishing a trust. Once you put it there logins would no longer require a password.

I suspect you meant to ask if there was a way to save your PC's private key on the server. The answer is yes but once someone hacked into the server they would have both the public and private keys not only for the server but also the PC. You generally do not want that because they could compromise security on your PC if it were running sshd. (PuTTY does NOT provide an sshd but some folks run Cygwin with sshd to allow ssh to their Windoze PCs.) It is better to generate a new private/public key and re-establish the trust by updating server's authorized_keys (assuming you want a trust rather than using a password).


key, login, lost, private, public, putty, server

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
ssh-client gui similar to putty? matiasar Linux - Software 3 11-23-2006 10:33 AM
Unable to log XP client to Samba-Ldap Domain. Problem from SambaPrimaryGroupSID ngaoundere Linux - Networking 0 02-02-2006 06:37 AM
X11 forwarding to putty client - Slackware lievendp Linux - Software 2 01-13-2006 09:40 AM
Client for 'raw telnet mode' like PuTTY wies Linux - Networking 1 03-30-2005 10:20 AM
ssh and using putty from the client ashley75 Linux - General 12 09-11-2003 01:21 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:26 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration