Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 574
  • Last Modified:

Doing ssh-keygen -e id_dsa_2048_a imposes carriage return

Hi,

This seems to be an oddball problem which I cannot seem to find a solution for.

I'm currently running:
ssh: SSH Secure Shell 3.2.3 on i686-pc-linux-gnu
on
Linux hostname 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 i686 i686 i386 GNU/Linux (Redhat 8.0 fresh install)

Problem is that after having created an ssh pub/private key and setting the passphrase, I'd like to change the passphrase.

I enter command "ssh-keygen -e id_dsa_2048_a" and enter my passphrase, but the system seems like it adds an additional carriage return!  So I can't even answer the question "...edit key..." and therefore can't change my passphrase!  Works on Solaris however.

Passphrase needed for key "2048-bit dsa, user@hostname, Wed Mar 052003 10:34:10 -0800".
Passphrase :
Do you want to edit key "2048-bit dsa, user@hostname, Wed Mar 052003 10:34:10 -0800" (yes or no)?
Aborted by userKey unedited and unsaved.


0
blee73
Asked:
blee73
1 Solution
 
GnsCommented:
Ehm, have you installed the commercial ssh product?
The ssh-keygen you'd tend to get on a vanilla RH8 is part of OpenSSH_3.4p1, and that has a completely different meaning for the options to ssh-keygen (-e converts the keyring to SECSH format:-).

Might explain the resounding lack of response:-).

If it is the commercial ssh, I'd suggest you make a formal bug-report to them.

-- Glenn

0
 
blee73Author Commented:
Yes, forgot to mention it is commercial SSH product.  I thought it may be something with the term setting that can cause this, but I doubt it.
0
 
GnsCommented:
If so, it would be in how the application turns off/on echo and/or cooked/uncooked/semicooked mode, most likely.

But more likely this is a genuine bug, where the first <Enter> is interpreted once to many:-).

The "Aborted..." bit looks a bit ... funny.
I think I have a demo ex of commercial SSH around somewhere.
If you like, I can try recreating your problem. It would have to wait till after the weekend though.

-- Glenn
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
GnsCommented:
Hmmm, two things

Shouldn't "ssh-keygen ...." actually be "ssh-keygen2 ...."

What happens if you specify the passphrase with the -p "your phrase" option? Less secure, but well, do it at runlevel 1 then;-).

-- Glenn
0
 
blee73Author Commented:
Yes, have tried both ways prior to your suggestion.  The answer is no, it does not work.  ssh-keygen2 and ssh-keygen results in the same.  I was thinking along the lines where it may have been a stty setting, but now I'm pretty sure its a bug.
0
 
GnsCommented:
With the proliferation of OpenSSH in the linux world, they might get less than good coverage/testing.

So even if you specify the -p "passphrase", it "skips past" the next interraction?

Sound like a bug... You should report it:-).

-- Glenn
0
 
CleanupPingCommented:
blee73:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
TheWeakestLinkCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept comments from Gns as answer
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

TheWeakestLink
EE Cleanup Volunteer
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now