ssh 3des private key encrypt and decrypt
i have converted my ssh private key with 3des encryption
openssl pkcs8 -topk8 -v2 des3 -in ~/.ssh/id_rsa.old -out ~/.ssh/id_rsa
how do I remove encryption and get the old key?
linux centos ssh
bumped to the homepage by Community♦ 4 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
i have converted my ssh private key with 3des encryption
openssl pkcs8 -topk8 -v2 des3 -in ~/.ssh/id_rsa.old -out ~/.ssh/id_rsa
how do I remove encryption and get the old key?
linux centos ssh
bumped to the homepage by Community♦ 4 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
i have converted my ssh private key with 3des encryption
openssl pkcs8 -topk8 -v2 des3 -in ~/.ssh/id_rsa.old -out ~/.ssh/id_rsa
how do I remove encryption and get the old key?
linux centos ssh
i have converted my ssh private key with 3des encryption
openssl pkcs8 -topk8 -v2 des3 -in ~/.ssh/id_rsa.old -out ~/.ssh/id_rsa
how do I remove encryption and get the old key?
linux centos ssh
linux centos ssh
asked Apr 22 '15 at 11:47
krisdigitxkrisdigitx
1063
1063
bumped to the homepage by Community♦ 4 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 4 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
If you haven't deleted the file ~/.ssh/id_rsa.old
, that's your old key without passphrase ("unencrypted").
Otherwise, to remove a passphrase from the keyfile just use the command
openssl pkey -in ~/.ssh/id_rsa -out ~/.ssh/id_rsa_unencrypted
You will be prompted for the passphrase.
EDIT: changed filenames to be more clear.
this is not about the passphrase, I need to remove 3DES encryption...
– krisdigitx
Apr 22 '15 at 13:30
The command you posted encrypted~/.ssh/id_rsa.old
with 3DES using a passphrase as key. OpenSSL must have prompted you for that passphrase when you ran that command.
– dr01
Apr 22 '15 at 13:40
What is printed out when you typehead -n 1 ~/.ssh/id_rsa
?
– dr01
Apr 22 '15 at 13:45
add a comment |
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f197858%2fssh-3des-private-key-encrypt-and-decrypt%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
If you haven't deleted the file ~/.ssh/id_rsa.old
, that's your old key without passphrase ("unencrypted").
Otherwise, to remove a passphrase from the keyfile just use the command
openssl pkey -in ~/.ssh/id_rsa -out ~/.ssh/id_rsa_unencrypted
You will be prompted for the passphrase.
EDIT: changed filenames to be more clear.
this is not about the passphrase, I need to remove 3DES encryption...
– krisdigitx
Apr 22 '15 at 13:30
The command you posted encrypted~/.ssh/id_rsa.old
with 3DES using a passphrase as key. OpenSSL must have prompted you for that passphrase when you ran that command.
– dr01
Apr 22 '15 at 13:40
What is printed out when you typehead -n 1 ~/.ssh/id_rsa
?
– dr01
Apr 22 '15 at 13:45
add a comment |
If you haven't deleted the file ~/.ssh/id_rsa.old
, that's your old key without passphrase ("unencrypted").
Otherwise, to remove a passphrase from the keyfile just use the command
openssl pkey -in ~/.ssh/id_rsa -out ~/.ssh/id_rsa_unencrypted
You will be prompted for the passphrase.
EDIT: changed filenames to be more clear.
this is not about the passphrase, I need to remove 3DES encryption...
– krisdigitx
Apr 22 '15 at 13:30
The command you posted encrypted~/.ssh/id_rsa.old
with 3DES using a passphrase as key. OpenSSL must have prompted you for that passphrase when you ran that command.
– dr01
Apr 22 '15 at 13:40
What is printed out when you typehead -n 1 ~/.ssh/id_rsa
?
– dr01
Apr 22 '15 at 13:45
add a comment |
If you haven't deleted the file ~/.ssh/id_rsa.old
, that's your old key without passphrase ("unencrypted").
Otherwise, to remove a passphrase from the keyfile just use the command
openssl pkey -in ~/.ssh/id_rsa -out ~/.ssh/id_rsa_unencrypted
You will be prompted for the passphrase.
EDIT: changed filenames to be more clear.
If you haven't deleted the file ~/.ssh/id_rsa.old
, that's your old key without passphrase ("unencrypted").
Otherwise, to remove a passphrase from the keyfile just use the command
openssl pkey -in ~/.ssh/id_rsa -out ~/.ssh/id_rsa_unencrypted
You will be prompted for the passphrase.
EDIT: changed filenames to be more clear.
edited Apr 22 '15 at 13:42
answered Apr 22 '15 at 13:19
dr01dr01
16.3k115275
16.3k115275
this is not about the passphrase, I need to remove 3DES encryption...
– krisdigitx
Apr 22 '15 at 13:30
The command you posted encrypted~/.ssh/id_rsa.old
with 3DES using a passphrase as key. OpenSSL must have prompted you for that passphrase when you ran that command.
– dr01
Apr 22 '15 at 13:40
What is printed out when you typehead -n 1 ~/.ssh/id_rsa
?
– dr01
Apr 22 '15 at 13:45
add a comment |
this is not about the passphrase, I need to remove 3DES encryption...
– krisdigitx
Apr 22 '15 at 13:30
The command you posted encrypted~/.ssh/id_rsa.old
with 3DES using a passphrase as key. OpenSSL must have prompted you for that passphrase when you ran that command.
– dr01
Apr 22 '15 at 13:40
What is printed out when you typehead -n 1 ~/.ssh/id_rsa
?
– dr01
Apr 22 '15 at 13:45
this is not about the passphrase, I need to remove 3DES encryption...
– krisdigitx
Apr 22 '15 at 13:30
this is not about the passphrase, I need to remove 3DES encryption...
– krisdigitx
Apr 22 '15 at 13:30
The command you posted encrypted
~/.ssh/id_rsa.old
with 3DES using a passphrase as key. OpenSSL must have prompted you for that passphrase when you ran that command.– dr01
Apr 22 '15 at 13:40
The command you posted encrypted
~/.ssh/id_rsa.old
with 3DES using a passphrase as key. OpenSSL must have prompted you for that passphrase when you ran that command.– dr01
Apr 22 '15 at 13:40
What is printed out when you type
head -n 1 ~/.ssh/id_rsa
?– dr01
Apr 22 '15 at 13:45
What is printed out when you type
head -n 1 ~/.ssh/id_rsa
?– dr01
Apr 22 '15 at 13:45
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f197858%2fssh-3des-private-key-encrypt-and-decrypt%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown