Disconnected: No supported authentication methods available (server sent: publickey)
It is as the title says. When I try to connect to my sftp server with filezilla it says the following "Disconnected: No supported authentication methods available (server sent: publickey)", however before this message comes a window pops up asking me if I trust the servers host key and I say yes. Futhermore I can't find my .ssh directory anymore which contained the authorized_keys file. I am a little confused. Have anyone of you guys any tips or ideas to solve this issue?
Thanks on beforehand.
server ssh sftp
add a comment |
It is as the title says. When I try to connect to my sftp server with filezilla it says the following "Disconnected: No supported authentication methods available (server sent: publickey)", however before this message comes a window pops up asking me if I trust the servers host key and I say yes. Futhermore I can't find my .ssh directory anymore which contained the authorized_keys file. I am a little confused. Have anyone of you guys any tips or ideas to solve this issue?
Thanks on beforehand.
server ssh sftp
Well if you have configured SSH to look in~/.ssh
for theauthorized_keys
file, and it does not exist, you will need to recreate it and re-copy your public key there (or generate a new keypair)
– steeldriver
Feb 19 '17 at 16:51
since I don't know where the keys, I am thinking of generating a new pair of keys but if the keys but if the keys are left somwhere on the server, will they be over written?
– KV-2
Feb 20 '17 at 16:35
add a comment |
It is as the title says. When I try to connect to my sftp server with filezilla it says the following "Disconnected: No supported authentication methods available (server sent: publickey)", however before this message comes a window pops up asking me if I trust the servers host key and I say yes. Futhermore I can't find my .ssh directory anymore which contained the authorized_keys file. I am a little confused. Have anyone of you guys any tips or ideas to solve this issue?
Thanks on beforehand.
server ssh sftp
It is as the title says. When I try to connect to my sftp server with filezilla it says the following "Disconnected: No supported authentication methods available (server sent: publickey)", however before this message comes a window pops up asking me if I trust the servers host key and I say yes. Futhermore I can't find my .ssh directory anymore which contained the authorized_keys file. I am a little confused. Have anyone of you guys any tips or ideas to solve this issue?
Thanks on beforehand.
server ssh sftp
server ssh sftp
asked Feb 19 '17 at 16:02
KV-2KV-2
33139
33139
Well if you have configured SSH to look in~/.ssh
for theauthorized_keys
file, and it does not exist, you will need to recreate it and re-copy your public key there (or generate a new keypair)
– steeldriver
Feb 19 '17 at 16:51
since I don't know where the keys, I am thinking of generating a new pair of keys but if the keys but if the keys are left somwhere on the server, will they be over written?
– KV-2
Feb 20 '17 at 16:35
add a comment |
Well if you have configured SSH to look in~/.ssh
for theauthorized_keys
file, and it does not exist, you will need to recreate it and re-copy your public key there (or generate a new keypair)
– steeldriver
Feb 19 '17 at 16:51
since I don't know where the keys, I am thinking of generating a new pair of keys but if the keys but if the keys are left somwhere on the server, will they be over written?
– KV-2
Feb 20 '17 at 16:35
Well if you have configured SSH to look in
~/.ssh
for the authorized_keys
file, and it does not exist, you will need to recreate it and re-copy your public key there (or generate a new keypair)– steeldriver
Feb 19 '17 at 16:51
Well if you have configured SSH to look in
~/.ssh
for the authorized_keys
file, and it does not exist, you will need to recreate it and re-copy your public key there (or generate a new keypair)– steeldriver
Feb 19 '17 at 16:51
since I don't know where the keys, I am thinking of generating a new pair of keys but if the keys but if the keys are left somwhere on the server, will they be over written?
– KV-2
Feb 20 '17 at 16:35
since I don't know where the keys, I am thinking of generating a new pair of keys but if the keys but if the keys are left somwhere on the server, will they be over written?
– KV-2
Feb 20 '17 at 16:35
add a comment |
2 Answers
2
active
oldest
votes
Your server is configured to deny anything else than public key-based authentication.
If you have lost your .ssh
(and hence, your RSA, DSA, .... key pair), then you can no longer login to your remote system.
Depending on who's hosting this remote system, you may be able to use some KVM over IP, VNC console, ... reboot the server on some liveCD, ... Point is: if you can't find a copy of your SSH key pair, then you'll have to enable password-based authentication somehow.
I will propably make a new pair of keys since I want key-based authentication.
– KV-2
Feb 20 '17 at 16:42
add a comment |
Please do not laugh, but make sure that you have not renamed that user's home directory as defined in /etc/passwd
. I had long ago and since forgotten about it (I SSH with another account and sudo su
over). Finding my error was hours long, but changing the folder name and rebooting was less than 60 seconds. username:x:1007:1007::/var/www/new_folder:/bin/bash
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%2f885028%2fdisconnected-no-supported-authentication-methods-available-server-sent-public%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Your server is configured to deny anything else than public key-based authentication.
If you have lost your .ssh
(and hence, your RSA, DSA, .... key pair), then you can no longer login to your remote system.
Depending on who's hosting this remote system, you may be able to use some KVM over IP, VNC console, ... reboot the server on some liveCD, ... Point is: if you can't find a copy of your SSH key pair, then you'll have to enable password-based authentication somehow.
I will propably make a new pair of keys since I want key-based authentication.
– KV-2
Feb 20 '17 at 16:42
add a comment |
Your server is configured to deny anything else than public key-based authentication.
If you have lost your .ssh
(and hence, your RSA, DSA, .... key pair), then you can no longer login to your remote system.
Depending on who's hosting this remote system, you may be able to use some KVM over IP, VNC console, ... reboot the server on some liveCD, ... Point is: if you can't find a copy of your SSH key pair, then you'll have to enable password-based authentication somehow.
I will propably make a new pair of keys since I want key-based authentication.
– KV-2
Feb 20 '17 at 16:42
add a comment |
Your server is configured to deny anything else than public key-based authentication.
If you have lost your .ssh
(and hence, your RSA, DSA, .... key pair), then you can no longer login to your remote system.
Depending on who's hosting this remote system, you may be able to use some KVM over IP, VNC console, ... reboot the server on some liveCD, ... Point is: if you can't find a copy of your SSH key pair, then you'll have to enable password-based authentication somehow.
Your server is configured to deny anything else than public key-based authentication.
If you have lost your .ssh
(and hence, your RSA, DSA, .... key pair), then you can no longer login to your remote system.
Depending on who's hosting this remote system, you may be able to use some KVM over IP, VNC console, ... reboot the server on some liveCD, ... Point is: if you can't find a copy of your SSH key pair, then you'll have to enable password-based authentication somehow.
answered Feb 19 '17 at 17:52
SYNSYN
526211
526211
I will propably make a new pair of keys since I want key-based authentication.
– KV-2
Feb 20 '17 at 16:42
add a comment |
I will propably make a new pair of keys since I want key-based authentication.
– KV-2
Feb 20 '17 at 16:42
I will propably make a new pair of keys since I want key-based authentication.
– KV-2
Feb 20 '17 at 16:42
I will propably make a new pair of keys since I want key-based authentication.
– KV-2
Feb 20 '17 at 16:42
add a comment |
Please do not laugh, but make sure that you have not renamed that user's home directory as defined in /etc/passwd
. I had long ago and since forgotten about it (I SSH with another account and sudo su
over). Finding my error was hours long, but changing the folder name and rebooting was less than 60 seconds. username:x:1007:1007::/var/www/new_folder:/bin/bash
add a comment |
Please do not laugh, but make sure that you have not renamed that user's home directory as defined in /etc/passwd
. I had long ago and since forgotten about it (I SSH with another account and sudo su
over). Finding my error was hours long, but changing the folder name and rebooting was less than 60 seconds. username:x:1007:1007::/var/www/new_folder:/bin/bash
add a comment |
Please do not laugh, but make sure that you have not renamed that user's home directory as defined in /etc/passwd
. I had long ago and since forgotten about it (I SSH with another account and sudo su
over). Finding my error was hours long, but changing the folder name and rebooting was less than 60 seconds. username:x:1007:1007::/var/www/new_folder:/bin/bash
Please do not laugh, but make sure that you have not renamed that user's home directory as defined in /etc/passwd
. I had long ago and since forgotten about it (I SSH with another account and sudo su
over). Finding my error was hours long, but changing the folder name and rebooting was less than 60 seconds. username:x:1007:1007::/var/www/new_folder:/bin/bash
answered May 21 '18 at 17:30
wruckiewruckie
1118
1118
add a comment |
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.
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%2f885028%2fdisconnected-no-supported-authentication-methods-available-server-sent-public%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
Well if you have configured SSH to look in
~/.ssh
for theauthorized_keys
file, and it does not exist, you will need to recreate it and re-copy your public key there (or generate a new keypair)– steeldriver
Feb 19 '17 at 16:51
since I don't know where the keys, I am thinking of generating a new pair of keys but if the keys but if the keys are left somwhere on the server, will they be over written?
– KV-2
Feb 20 '17 at 16:35