Putty key, Works on Win10, but not on Ubuntu LTS 18.04
I have made a public and private pair keys with puttygen on Windows and uploaded to the server. And my private key works like a charm on Windows 10(git not installed). When I use Putty for linux ubuntu(git installed) I can't use it. I am going to pull a project on gitlab from a server, so I need to use my name.ppk file to login to the server located at ipaddress@host.com.
Question: How can I login using my name.ppk file located on ~/Desktop, on terminal?
server ssh git putty gitlab
add a comment |
I have made a public and private pair keys with puttygen on Windows and uploaded to the server. And my private key works like a charm on Windows 10(git not installed). When I use Putty for linux ubuntu(git installed) I can't use it. I am going to pull a project on gitlab from a server, so I need to use my name.ppk file to login to the server located at ipaddress@host.com.
Question: How can I login using my name.ppk file located on ~/Desktop, on terminal?
server ssh git putty gitlab
1
Did you convert the key to OpenSSH format? See for example How to convert ppk to SSH key using PuTTY Key Generator
– steeldriver
Dec 30 '18 at 14:55
@steeldriver no. OK. I got this. Thanks ;)
– Erdemtugs Ganzorig
Dec 30 '18 at 15:02
add a comment |
I have made a public and private pair keys with puttygen on Windows and uploaded to the server. And my private key works like a charm on Windows 10(git not installed). When I use Putty for linux ubuntu(git installed) I can't use it. I am going to pull a project on gitlab from a server, so I need to use my name.ppk file to login to the server located at ipaddress@host.com.
Question: How can I login using my name.ppk file located on ~/Desktop, on terminal?
server ssh git putty gitlab
I have made a public and private pair keys with puttygen on Windows and uploaded to the server. And my private key works like a charm on Windows 10(git not installed). When I use Putty for linux ubuntu(git installed) I can't use it. I am going to pull a project on gitlab from a server, so I need to use my name.ppk file to login to the server located at ipaddress@host.com.
Question: How can I login using my name.ppk file located on ~/Desktop, on terminal?
server ssh git putty gitlab
server ssh git putty gitlab
asked Dec 30 '18 at 14:46
Erdemtugs Ganzorig
15117
15117
1
Did you convert the key to OpenSSH format? See for example How to convert ppk to SSH key using PuTTY Key Generator
– steeldriver
Dec 30 '18 at 14:55
@steeldriver no. OK. I got this. Thanks ;)
– Erdemtugs Ganzorig
Dec 30 '18 at 15:02
add a comment |
1
Did you convert the key to OpenSSH format? See for example How to convert ppk to SSH key using PuTTY Key Generator
– steeldriver
Dec 30 '18 at 14:55
@steeldriver no. OK. I got this. Thanks ;)
– Erdemtugs Ganzorig
Dec 30 '18 at 15:02
1
1
Did you convert the key to OpenSSH format? See for example How to convert ppk to SSH key using PuTTY Key Generator
– steeldriver
Dec 30 '18 at 14:55
Did you convert the key to OpenSSH format? See for example How to convert ppk to SSH key using PuTTY Key Generator
– steeldriver
Dec 30 '18 at 14:55
@steeldriver no. OK. I got this. Thanks ;)
– Erdemtugs Ganzorig
Dec 30 '18 at 15:02
@steeldriver no. OK. I got this. Thanks ;)
– Erdemtugs Ganzorig
Dec 30 '18 at 15:02
add a comment |
1 Answer
1
active
oldest
votes
Convert the key to OpenSSH format (note this will overwrite your existing SSH key if you have one)
sudo apt install putty-tools
mkdir ~/.ssh
puttygen ~/Desktop/name.ppk -O private-openssh -o ~/.ssh/id_dsa
puttygen ~/Desktop/name.ppk -O public-openssh -o ~/.ssh/id_dsa.pub
chmod 600 ~/.ssh/id_dsa
chmod 666 ~/.ssh/id_dsa.pub
Now you can simply use ssh
to connect to your server in a regular terminal:
ssh user@host
Also note that if you open your file browser (nautilus, dolphin, etc.) you can use the GUI to browse your server by entering:
sftp://user@host
Where sftp://
means FTP over SSH in this case. There is also the fish://
protocol which also uses SSH but doesn't use any FTP like commands which may be faster.
What if I have git key in this location? ./ssh/id_dsa.
– Erdemtugs Ganzorig
Dec 30 '18 at 15:06
Then you should use that key to SSH into your server instead or usessh -i path_to_key user@host
to manually specify the key (although you won't get as eay of a GUI interaction) - Also there is no such thing as a "git key" in this contex (unless you are doing signed commits) it's an OpenSSH key
– Kristopher Ives
Dec 30 '18 at 15:08
To get the public key line you would add to your server's authorized_keys file runcat ~/.ssh/id_rsa.pub
– Kristopher Ives
Dec 30 '18 at 15:08
add a comment |
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
});
}
});
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%2f1105609%2fputty-key-works-on-win10-but-not-on-ubuntu-lts-18-04%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
Convert the key to OpenSSH format (note this will overwrite your existing SSH key if you have one)
sudo apt install putty-tools
mkdir ~/.ssh
puttygen ~/Desktop/name.ppk -O private-openssh -o ~/.ssh/id_dsa
puttygen ~/Desktop/name.ppk -O public-openssh -o ~/.ssh/id_dsa.pub
chmod 600 ~/.ssh/id_dsa
chmod 666 ~/.ssh/id_dsa.pub
Now you can simply use ssh
to connect to your server in a regular terminal:
ssh user@host
Also note that if you open your file browser (nautilus, dolphin, etc.) you can use the GUI to browse your server by entering:
sftp://user@host
Where sftp://
means FTP over SSH in this case. There is also the fish://
protocol which also uses SSH but doesn't use any FTP like commands which may be faster.
What if I have git key in this location? ./ssh/id_dsa.
– Erdemtugs Ganzorig
Dec 30 '18 at 15:06
Then you should use that key to SSH into your server instead or usessh -i path_to_key user@host
to manually specify the key (although you won't get as eay of a GUI interaction) - Also there is no such thing as a "git key" in this contex (unless you are doing signed commits) it's an OpenSSH key
– Kristopher Ives
Dec 30 '18 at 15:08
To get the public key line you would add to your server's authorized_keys file runcat ~/.ssh/id_rsa.pub
– Kristopher Ives
Dec 30 '18 at 15:08
add a comment |
Convert the key to OpenSSH format (note this will overwrite your existing SSH key if you have one)
sudo apt install putty-tools
mkdir ~/.ssh
puttygen ~/Desktop/name.ppk -O private-openssh -o ~/.ssh/id_dsa
puttygen ~/Desktop/name.ppk -O public-openssh -o ~/.ssh/id_dsa.pub
chmod 600 ~/.ssh/id_dsa
chmod 666 ~/.ssh/id_dsa.pub
Now you can simply use ssh
to connect to your server in a regular terminal:
ssh user@host
Also note that if you open your file browser (nautilus, dolphin, etc.) you can use the GUI to browse your server by entering:
sftp://user@host
Where sftp://
means FTP over SSH in this case. There is also the fish://
protocol which also uses SSH but doesn't use any FTP like commands which may be faster.
What if I have git key in this location? ./ssh/id_dsa.
– Erdemtugs Ganzorig
Dec 30 '18 at 15:06
Then you should use that key to SSH into your server instead or usessh -i path_to_key user@host
to manually specify the key (although you won't get as eay of a GUI interaction) - Also there is no such thing as a "git key" in this contex (unless you are doing signed commits) it's an OpenSSH key
– Kristopher Ives
Dec 30 '18 at 15:08
To get the public key line you would add to your server's authorized_keys file runcat ~/.ssh/id_rsa.pub
– Kristopher Ives
Dec 30 '18 at 15:08
add a comment |
Convert the key to OpenSSH format (note this will overwrite your existing SSH key if you have one)
sudo apt install putty-tools
mkdir ~/.ssh
puttygen ~/Desktop/name.ppk -O private-openssh -o ~/.ssh/id_dsa
puttygen ~/Desktop/name.ppk -O public-openssh -o ~/.ssh/id_dsa.pub
chmod 600 ~/.ssh/id_dsa
chmod 666 ~/.ssh/id_dsa.pub
Now you can simply use ssh
to connect to your server in a regular terminal:
ssh user@host
Also note that if you open your file browser (nautilus, dolphin, etc.) you can use the GUI to browse your server by entering:
sftp://user@host
Where sftp://
means FTP over SSH in this case. There is also the fish://
protocol which also uses SSH but doesn't use any FTP like commands which may be faster.
Convert the key to OpenSSH format (note this will overwrite your existing SSH key if you have one)
sudo apt install putty-tools
mkdir ~/.ssh
puttygen ~/Desktop/name.ppk -O private-openssh -o ~/.ssh/id_dsa
puttygen ~/Desktop/name.ppk -O public-openssh -o ~/.ssh/id_dsa.pub
chmod 600 ~/.ssh/id_dsa
chmod 666 ~/.ssh/id_dsa.pub
Now you can simply use ssh
to connect to your server in a regular terminal:
ssh user@host
Also note that if you open your file browser (nautilus, dolphin, etc.) you can use the GUI to browse your server by entering:
sftp://user@host
Where sftp://
means FTP over SSH in this case. There is also the fish://
protocol which also uses SSH but doesn't use any FTP like commands which may be faster.
answered Dec 30 '18 at 15:03
Kristopher Ives
1,8181016
1,8181016
What if I have git key in this location? ./ssh/id_dsa.
– Erdemtugs Ganzorig
Dec 30 '18 at 15:06
Then you should use that key to SSH into your server instead or usessh -i path_to_key user@host
to manually specify the key (although you won't get as eay of a GUI interaction) - Also there is no such thing as a "git key" in this contex (unless you are doing signed commits) it's an OpenSSH key
– Kristopher Ives
Dec 30 '18 at 15:08
To get the public key line you would add to your server's authorized_keys file runcat ~/.ssh/id_rsa.pub
– Kristopher Ives
Dec 30 '18 at 15:08
add a comment |
What if I have git key in this location? ./ssh/id_dsa.
– Erdemtugs Ganzorig
Dec 30 '18 at 15:06
Then you should use that key to SSH into your server instead or usessh -i path_to_key user@host
to manually specify the key (although you won't get as eay of a GUI interaction) - Also there is no such thing as a "git key" in this contex (unless you are doing signed commits) it's an OpenSSH key
– Kristopher Ives
Dec 30 '18 at 15:08
To get the public key line you would add to your server's authorized_keys file runcat ~/.ssh/id_rsa.pub
– Kristopher Ives
Dec 30 '18 at 15:08
What if I have git key in this location? ./ssh/id_dsa.
– Erdemtugs Ganzorig
Dec 30 '18 at 15:06
What if I have git key in this location? ./ssh/id_dsa.
– Erdemtugs Ganzorig
Dec 30 '18 at 15:06
Then you should use that key to SSH into your server instead or use
ssh -i path_to_key user@host
to manually specify the key (although you won't get as eay of a GUI interaction) - Also there is no such thing as a "git key" in this contex (unless you are doing signed commits) it's an OpenSSH key– Kristopher Ives
Dec 30 '18 at 15:08
Then you should use that key to SSH into your server instead or use
ssh -i path_to_key user@host
to manually specify the key (although you won't get as eay of a GUI interaction) - Also there is no such thing as a "git key" in this contex (unless you are doing signed commits) it's an OpenSSH key– Kristopher Ives
Dec 30 '18 at 15:08
To get the public key line you would add to your server's authorized_keys file run
cat ~/.ssh/id_rsa.pub
– Kristopher Ives
Dec 30 '18 at 15:08
To get the public key line you would add to your server's authorized_keys file run
cat ~/.ssh/id_rsa.pub
– Kristopher Ives
Dec 30 '18 at 15:08
add a comment |
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f1105609%2fputty-key-works-on-win10-but-not-on-ubuntu-lts-18-04%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
1
Did you convert the key to OpenSSH format? See for example How to convert ppk to SSH key using PuTTY Key Generator
– steeldriver
Dec 30 '18 at 14:55
@steeldriver no. OK. I got this. Thanks ;)
– Erdemtugs Ganzorig
Dec 30 '18 at 15:02