How to view “.ppk” files with gedit
When I open .ppk or .pub files (in my ~/.ssh
directory), I'm unable to view the data. All I see are boxes as shown below. How do I fix this?
ssh gedit putty parse
New contributor
add a comment |
When I open .ppk or .pub files (in my ~/.ssh
directory), I'm unable to view the data. All I see are boxes as shown below. How do I fix this?
ssh gedit putty parse
New contributor
Hi, please check this thread out askubuntu.com/questions/818929/….
– thephoenix01
Jan 23 at 18:56
I don't want to convert the file. I want to see its contents.
– Brad West
Jan 23 at 18:58
I'm pretty sure gedit is missing the requisite plugins. The converted format mentioned might be linux-readable, hence my comment. You can try trymore <filename.ppk>
on terminal once, maybe that will help. Cheerios :)
– thephoenix01
Jan 23 at 19:01
Yes,more <filename.ppk>
does show the contents of the file in the terminal. Any idea what plugin would allow me to view this in gedit?
– Brad West
Jan 23 at 19:03
Could it be a wrong encoding guessed by Gedit? What doesfile <filename.ppk>
say?
– Melebius
2 days ago
add a comment |
When I open .ppk or .pub files (in my ~/.ssh
directory), I'm unable to view the data. All I see are boxes as shown below. How do I fix this?
ssh gedit putty parse
New contributor
When I open .ppk or .pub files (in my ~/.ssh
directory), I'm unable to view the data. All I see are boxes as shown below. How do I fix this?
ssh gedit putty parse
ssh gedit putty parse
New contributor
New contributor
edited 2 days ago
Melebius
4,57651839
4,57651839
New contributor
asked Jan 23 at 18:52
Brad WestBrad West
12
12
New contributor
New contributor
Hi, please check this thread out askubuntu.com/questions/818929/….
– thephoenix01
Jan 23 at 18:56
I don't want to convert the file. I want to see its contents.
– Brad West
Jan 23 at 18:58
I'm pretty sure gedit is missing the requisite plugins. The converted format mentioned might be linux-readable, hence my comment. You can try trymore <filename.ppk>
on terminal once, maybe that will help. Cheerios :)
– thephoenix01
Jan 23 at 19:01
Yes,more <filename.ppk>
does show the contents of the file in the terminal. Any idea what plugin would allow me to view this in gedit?
– Brad West
Jan 23 at 19:03
Could it be a wrong encoding guessed by Gedit? What doesfile <filename.ppk>
say?
– Melebius
2 days ago
add a comment |
Hi, please check this thread out askubuntu.com/questions/818929/….
– thephoenix01
Jan 23 at 18:56
I don't want to convert the file. I want to see its contents.
– Brad West
Jan 23 at 18:58
I'm pretty sure gedit is missing the requisite plugins. The converted format mentioned might be linux-readable, hence my comment. You can try trymore <filename.ppk>
on terminal once, maybe that will help. Cheerios :)
– thephoenix01
Jan 23 at 19:01
Yes,more <filename.ppk>
does show the contents of the file in the terminal. Any idea what plugin would allow me to view this in gedit?
– Brad West
Jan 23 at 19:03
Could it be a wrong encoding guessed by Gedit? What doesfile <filename.ppk>
say?
– Melebius
2 days ago
Hi, please check this thread out askubuntu.com/questions/818929/….
– thephoenix01
Jan 23 at 18:56
Hi, please check this thread out askubuntu.com/questions/818929/….
– thephoenix01
Jan 23 at 18:56
I don't want to convert the file. I want to see its contents.
– Brad West
Jan 23 at 18:58
I don't want to convert the file. I want to see its contents.
– Brad West
Jan 23 at 18:58
I'm pretty sure gedit is missing the requisite plugins. The converted format mentioned might be linux-readable, hence my comment. You can try try
more <filename.ppk>
on terminal once, maybe that will help. Cheerios :)– thephoenix01
Jan 23 at 19:01
I'm pretty sure gedit is missing the requisite plugins. The converted format mentioned might be linux-readable, hence my comment. You can try try
more <filename.ppk>
on terminal once, maybe that will help. Cheerios :)– thephoenix01
Jan 23 at 19:01
Yes,
more <filename.ppk>
does show the contents of the file in the terminal. Any idea what plugin would allow me to view this in gedit?– Brad West
Jan 23 at 19:03
Yes,
more <filename.ppk>
does show the contents of the file in the terminal. Any idea what plugin would allow me to view this in gedit?– Brad West
Jan 23 at 19:03
Could it be a wrong encoding guessed by Gedit? What does
file <filename.ppk>
say?– Melebius
2 days ago
Could it be a wrong encoding guessed by Gedit? What does
file <filename.ppk>
say?– Melebius
2 days ago
add a comment |
1 Answer
1
active
oldest
votes
EDIT: Please note there are actually two versions of PPK files at play - one is the "older" binary one, and one is the newer "readable" one.
PPK files are Putty Private Key files, readable by PuttyGEN and Putty. In older PPK generated versions, they are stored as binary files, meaning they do not have any human-readable bits in them.
If you intend to read the contents of an old-style PPK, such as the specific private key bits that you'd find with an ssh-keygen
'd private key, you need to convert the PPK to OpenSSH format and then read the Base64'd ASCII.
This applies for the Public Key file as well, though it's in SSH2 format which is not the format that'll work for SSH.
In newer versions of PuttyGEN and Putty(and not in the repos for Linux at this time), the PPK file is human readable to an extent. This means that in the latest PuTTY, you can read the PPK and Public Key as human readable.
However I have not found this 'newer' PuTTY on Linux yet, and only have found those binaries on Linux.
Also, without actually examining the files themselves, I can't determine whether the file you think is a PPK or a public key is actually a key that you can easily properly read or not; some keys are in 'binary form' and not openable, and those're either old PPK files or not the files you think they are and therefore aren't human readable (identification certificates for example can be used with OpenSSH connections, and if the certificate is in DER format it's in binary non-human-readable format).
I have two Ubuntu 18.04 machines. On one of them I can open the file with gedit, on the other I can not. No converting necessary.
– Brad West
Jan 23 at 19:02
please edit the question and add in 2 images with the exact same file opened on those 2 machines if that is true. Not just the wrongly shown file ;)
– Rinzwind
Jan 23 at 19:04
Isn't that exactly what this thread (askubuntu.com/questions/818929/…) is about?
– thephoenix01
Jan 23 at 19:08
If it is, I'm not smart enough to understand it. I see nothing in there about gedit.
– Brad West
Jan 23 at 19:11
1
@BradWest there's nothing in that thread about gedit. And I can confirm that on six 18.04 machines it is not readable. The one that is readable is not actually a Putty Private Key. PPK files are Putty's binary format. You might be reading a standard private key file but not the PPK, which would be human readable Base64-encoded/encrypted text)
– Thomas Ward♦
Jan 23 at 19:18
|
show 4 more comments
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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
});
}
});
Brad West is a new contributor. Be nice, and check out our Code of Conduct.
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%2faskubuntu.com%2fquestions%2f1112311%2fhow-to-view-ppk-files-with-gedit%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
EDIT: Please note there are actually two versions of PPK files at play - one is the "older" binary one, and one is the newer "readable" one.
PPK files are Putty Private Key files, readable by PuttyGEN and Putty. In older PPK generated versions, they are stored as binary files, meaning they do not have any human-readable bits in them.
If you intend to read the contents of an old-style PPK, such as the specific private key bits that you'd find with an ssh-keygen
'd private key, you need to convert the PPK to OpenSSH format and then read the Base64'd ASCII.
This applies for the Public Key file as well, though it's in SSH2 format which is not the format that'll work for SSH.
In newer versions of PuttyGEN and Putty(and not in the repos for Linux at this time), the PPK file is human readable to an extent. This means that in the latest PuTTY, you can read the PPK and Public Key as human readable.
However I have not found this 'newer' PuTTY on Linux yet, and only have found those binaries on Linux.
Also, without actually examining the files themselves, I can't determine whether the file you think is a PPK or a public key is actually a key that you can easily properly read or not; some keys are in 'binary form' and not openable, and those're either old PPK files or not the files you think they are and therefore aren't human readable (identification certificates for example can be used with OpenSSH connections, and if the certificate is in DER format it's in binary non-human-readable format).
I have two Ubuntu 18.04 machines. On one of them I can open the file with gedit, on the other I can not. No converting necessary.
– Brad West
Jan 23 at 19:02
please edit the question and add in 2 images with the exact same file opened on those 2 machines if that is true. Not just the wrongly shown file ;)
– Rinzwind
Jan 23 at 19:04
Isn't that exactly what this thread (askubuntu.com/questions/818929/…) is about?
– thephoenix01
Jan 23 at 19:08
If it is, I'm not smart enough to understand it. I see nothing in there about gedit.
– Brad West
Jan 23 at 19:11
1
@BradWest there's nothing in that thread about gedit. And I can confirm that on six 18.04 machines it is not readable. The one that is readable is not actually a Putty Private Key. PPK files are Putty's binary format. You might be reading a standard private key file but not the PPK, which would be human readable Base64-encoded/encrypted text)
– Thomas Ward♦
Jan 23 at 19:18
|
show 4 more comments
EDIT: Please note there are actually two versions of PPK files at play - one is the "older" binary one, and one is the newer "readable" one.
PPK files are Putty Private Key files, readable by PuttyGEN and Putty. In older PPK generated versions, they are stored as binary files, meaning they do not have any human-readable bits in them.
If you intend to read the contents of an old-style PPK, such as the specific private key bits that you'd find with an ssh-keygen
'd private key, you need to convert the PPK to OpenSSH format and then read the Base64'd ASCII.
This applies for the Public Key file as well, though it's in SSH2 format which is not the format that'll work for SSH.
In newer versions of PuttyGEN and Putty(and not in the repos for Linux at this time), the PPK file is human readable to an extent. This means that in the latest PuTTY, you can read the PPK and Public Key as human readable.
However I have not found this 'newer' PuTTY on Linux yet, and only have found those binaries on Linux.
Also, without actually examining the files themselves, I can't determine whether the file you think is a PPK or a public key is actually a key that you can easily properly read or not; some keys are in 'binary form' and not openable, and those're either old PPK files or not the files you think they are and therefore aren't human readable (identification certificates for example can be used with OpenSSH connections, and if the certificate is in DER format it's in binary non-human-readable format).
I have two Ubuntu 18.04 machines. On one of them I can open the file with gedit, on the other I can not. No converting necessary.
– Brad West
Jan 23 at 19:02
please edit the question and add in 2 images with the exact same file opened on those 2 machines if that is true. Not just the wrongly shown file ;)
– Rinzwind
Jan 23 at 19:04
Isn't that exactly what this thread (askubuntu.com/questions/818929/…) is about?
– thephoenix01
Jan 23 at 19:08
If it is, I'm not smart enough to understand it. I see nothing in there about gedit.
– Brad West
Jan 23 at 19:11
1
@BradWest there's nothing in that thread about gedit. And I can confirm that on six 18.04 machines it is not readable. The one that is readable is not actually a Putty Private Key. PPK files are Putty's binary format. You might be reading a standard private key file but not the PPK, which would be human readable Base64-encoded/encrypted text)
– Thomas Ward♦
Jan 23 at 19:18
|
show 4 more comments
EDIT: Please note there are actually two versions of PPK files at play - one is the "older" binary one, and one is the newer "readable" one.
PPK files are Putty Private Key files, readable by PuttyGEN and Putty. In older PPK generated versions, they are stored as binary files, meaning they do not have any human-readable bits in them.
If you intend to read the contents of an old-style PPK, such as the specific private key bits that you'd find with an ssh-keygen
'd private key, you need to convert the PPK to OpenSSH format and then read the Base64'd ASCII.
This applies for the Public Key file as well, though it's in SSH2 format which is not the format that'll work for SSH.
In newer versions of PuttyGEN and Putty(and not in the repos for Linux at this time), the PPK file is human readable to an extent. This means that in the latest PuTTY, you can read the PPK and Public Key as human readable.
However I have not found this 'newer' PuTTY on Linux yet, and only have found those binaries on Linux.
Also, without actually examining the files themselves, I can't determine whether the file you think is a PPK or a public key is actually a key that you can easily properly read or not; some keys are in 'binary form' and not openable, and those're either old PPK files or not the files you think they are and therefore aren't human readable (identification certificates for example can be used with OpenSSH connections, and if the certificate is in DER format it's in binary non-human-readable format).
EDIT: Please note there are actually two versions of PPK files at play - one is the "older" binary one, and one is the newer "readable" one.
PPK files are Putty Private Key files, readable by PuttyGEN and Putty. In older PPK generated versions, they are stored as binary files, meaning they do not have any human-readable bits in them.
If you intend to read the contents of an old-style PPK, such as the specific private key bits that you'd find with an ssh-keygen
'd private key, you need to convert the PPK to OpenSSH format and then read the Base64'd ASCII.
This applies for the Public Key file as well, though it's in SSH2 format which is not the format that'll work for SSH.
In newer versions of PuttyGEN and Putty(and not in the repos for Linux at this time), the PPK file is human readable to an extent. This means that in the latest PuTTY, you can read the PPK and Public Key as human readable.
However I have not found this 'newer' PuTTY on Linux yet, and only have found those binaries on Linux.
Also, without actually examining the files themselves, I can't determine whether the file you think is a PPK or a public key is actually a key that you can easily properly read or not; some keys are in 'binary form' and not openable, and those're either old PPK files or not the files you think they are and therefore aren't human readable (identification certificates for example can be used with OpenSSH connections, and if the certificate is in DER format it's in binary non-human-readable format).
edited 2 days ago
answered Jan 23 at 18:59
Thomas Ward♦Thomas Ward
44k23122174
44k23122174
I have two Ubuntu 18.04 machines. On one of them I can open the file with gedit, on the other I can not. No converting necessary.
– Brad West
Jan 23 at 19:02
please edit the question and add in 2 images with the exact same file opened on those 2 machines if that is true. Not just the wrongly shown file ;)
– Rinzwind
Jan 23 at 19:04
Isn't that exactly what this thread (askubuntu.com/questions/818929/…) is about?
– thephoenix01
Jan 23 at 19:08
If it is, I'm not smart enough to understand it. I see nothing in there about gedit.
– Brad West
Jan 23 at 19:11
1
@BradWest there's nothing in that thread about gedit. And I can confirm that on six 18.04 machines it is not readable. The one that is readable is not actually a Putty Private Key. PPK files are Putty's binary format. You might be reading a standard private key file but not the PPK, which would be human readable Base64-encoded/encrypted text)
– Thomas Ward♦
Jan 23 at 19:18
|
show 4 more comments
I have two Ubuntu 18.04 machines. On one of them I can open the file with gedit, on the other I can not. No converting necessary.
– Brad West
Jan 23 at 19:02
please edit the question and add in 2 images with the exact same file opened on those 2 machines if that is true. Not just the wrongly shown file ;)
– Rinzwind
Jan 23 at 19:04
Isn't that exactly what this thread (askubuntu.com/questions/818929/…) is about?
– thephoenix01
Jan 23 at 19:08
If it is, I'm not smart enough to understand it. I see nothing in there about gedit.
– Brad West
Jan 23 at 19:11
1
@BradWest there's nothing in that thread about gedit. And I can confirm that on six 18.04 machines it is not readable. The one that is readable is not actually a Putty Private Key. PPK files are Putty's binary format. You might be reading a standard private key file but not the PPK, which would be human readable Base64-encoded/encrypted text)
– Thomas Ward♦
Jan 23 at 19:18
I have two Ubuntu 18.04 machines. On one of them I can open the file with gedit, on the other I can not. No converting necessary.
– Brad West
Jan 23 at 19:02
I have two Ubuntu 18.04 machines. On one of them I can open the file with gedit, on the other I can not. No converting necessary.
– Brad West
Jan 23 at 19:02
please edit the question and add in 2 images with the exact same file opened on those 2 machines if that is true. Not just the wrongly shown file ;)
– Rinzwind
Jan 23 at 19:04
please edit the question and add in 2 images with the exact same file opened on those 2 machines if that is true. Not just the wrongly shown file ;)
– Rinzwind
Jan 23 at 19:04
Isn't that exactly what this thread (askubuntu.com/questions/818929/…) is about?
– thephoenix01
Jan 23 at 19:08
Isn't that exactly what this thread (askubuntu.com/questions/818929/…) is about?
– thephoenix01
Jan 23 at 19:08
If it is, I'm not smart enough to understand it. I see nothing in there about gedit.
– Brad West
Jan 23 at 19:11
If it is, I'm not smart enough to understand it. I see nothing in there about gedit.
– Brad West
Jan 23 at 19:11
1
1
@BradWest there's nothing in that thread about gedit. And I can confirm that on six 18.04 machines it is not readable. The one that is readable is not actually a Putty Private Key. PPK files are Putty's binary format. You might be reading a standard private key file but not the PPK, which would be human readable Base64-encoded/encrypted text)
– Thomas Ward♦
Jan 23 at 19:18
@BradWest there's nothing in that thread about gedit. And I can confirm that on six 18.04 machines it is not readable. The one that is readable is not actually a Putty Private Key. PPK files are Putty's binary format. You might be reading a standard private key file but not the PPK, which would be human readable Base64-encoded/encrypted text)
– Thomas Ward♦
Jan 23 at 19:18
|
show 4 more comments
Brad West is a new contributor. Be nice, and check out our Code of Conduct.
Brad West is a new contributor. Be nice, and check out our Code of Conduct.
Brad West is a new contributor. Be nice, and check out our Code of Conduct.
Brad West is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Ask Ubuntu!
- 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%2faskubuntu.com%2fquestions%2f1112311%2fhow-to-view-ppk-files-with-gedit%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
Hi, please check this thread out askubuntu.com/questions/818929/….
– thephoenix01
Jan 23 at 18:56
I don't want to convert the file. I want to see its contents.
– Brad West
Jan 23 at 18:58
I'm pretty sure gedit is missing the requisite plugins. The converted format mentioned might be linux-readable, hence my comment. You can try try
more <filename.ppk>
on terminal once, maybe that will help. Cheerios :)– thephoenix01
Jan 23 at 19:01
Yes,
more <filename.ppk>
does show the contents of the file in the terminal. Any idea what plugin would allow me to view this in gedit?– Brad West
Jan 23 at 19:03
Could it be a wrong encoding guessed by Gedit? What does
file <filename.ppk>
say?– Melebius
2 days ago