Setup SSH login using public key in GoFlex Home
I am trying to setup SSH public keys to login to my GoFlex Home 2TB. These are the steps I took
- Copy my public key to
/home/user/.ssh/authorized_keys
- Modify
/etc/ssh/sshd_config
to allow public key authentication and point to theauthorized_keys
file - End the SSH session
- login to
goflexhome.loal
and reboot the NAS device
Details of the client system:
- OS: Linux Mint 17.3
- Network type: LAN (Ethernet)
Details of the host system (NAS)
- OS: hipserv2 (Linux based by Seagate, default OS in GoFlex Home)
When I try to initiate the ssh session I get a password prompt instead of using my private key to login
File Permissions at /home/user/.ssh
-bash-3.2$ ls -la
total 4
drwxr-xr-x 2 user root 232 Mar 18 16:49 .
dr-xr-x--- 7 user www 616 Mar 18 16:48 ..
-rwxr-xr-x 1 user root 746 Mar 18 16:49 authorized_keys
-bash-3.2$
SSH verbose
Redirect to PasteBin
ssh nas
bumped to the homepage by Community♦ 6 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
|
show 1 more comment
I am trying to setup SSH public keys to login to my GoFlex Home 2TB. These are the steps I took
- Copy my public key to
/home/user/.ssh/authorized_keys
- Modify
/etc/ssh/sshd_config
to allow public key authentication and point to theauthorized_keys
file - End the SSH session
- login to
goflexhome.loal
and reboot the NAS device
Details of the client system:
- OS: Linux Mint 17.3
- Network type: LAN (Ethernet)
Details of the host system (NAS)
- OS: hipserv2 (Linux based by Seagate, default OS in GoFlex Home)
When I try to initiate the ssh session I get a password prompt instead of using my private key to login
File Permissions at /home/user/.ssh
-bash-3.2$ ls -la
total 4
drwxr-xr-x 2 user root 232 Mar 18 16:49 .
dr-xr-x--- 7 user www 616 Mar 18 16:48 ..
-rwxr-xr-x 1 user root 746 Mar 18 16:49 authorized_keys
-bash-3.2$
SSH verbose
Redirect to PasteBin
ssh nas
bumped to the homepage by Community♦ 6 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
1
did you tried ssh in verbose mode to see if keys are used at all, or just rejected: ssh -vvv user@server. Check also ownership of your .ssh directory.
– marc
Mar 18 '16 at 18:53
1
You think when you say GoFlex NAS, everyone knows what it is and probably 99% of people here don't. So, let's start with some questions: Where are you trying to login from: A Widows PC or Linux terminal ? When you say you modifiedsshd_config
are you referring to this file residin on your NAS or your local machine ? Also please post the output of this command, run on the NAS devicels -al /home/user/.ssh
– MelBurslan
Mar 18 '16 at 18:54
On hipserv2 system, do you have a login, if you do, login to this box and please post the output fromls -al /home/user/.ssh
where user needs to be replaced by your username on hipserv2 box
– MelBurslan
Mar 18 '16 at 20:01
Hi @MelBurslan, I've updated the OP
– Lordbalmon
Mar 18 '16 at 20:52
@mmmint, I've updated the OP with the verbose output, my system prompts me for the keyphrase but continues on to the password validation
– Lordbalmon
Mar 19 '16 at 1:27
|
show 1 more comment
I am trying to setup SSH public keys to login to my GoFlex Home 2TB. These are the steps I took
- Copy my public key to
/home/user/.ssh/authorized_keys
- Modify
/etc/ssh/sshd_config
to allow public key authentication and point to theauthorized_keys
file - End the SSH session
- login to
goflexhome.loal
and reboot the NAS device
Details of the client system:
- OS: Linux Mint 17.3
- Network type: LAN (Ethernet)
Details of the host system (NAS)
- OS: hipserv2 (Linux based by Seagate, default OS in GoFlex Home)
When I try to initiate the ssh session I get a password prompt instead of using my private key to login
File Permissions at /home/user/.ssh
-bash-3.2$ ls -la
total 4
drwxr-xr-x 2 user root 232 Mar 18 16:49 .
dr-xr-x--- 7 user www 616 Mar 18 16:48 ..
-rwxr-xr-x 1 user root 746 Mar 18 16:49 authorized_keys
-bash-3.2$
SSH verbose
Redirect to PasteBin
ssh nas
I am trying to setup SSH public keys to login to my GoFlex Home 2TB. These are the steps I took
- Copy my public key to
/home/user/.ssh/authorized_keys
- Modify
/etc/ssh/sshd_config
to allow public key authentication and point to theauthorized_keys
file - End the SSH session
- login to
goflexhome.loal
and reboot the NAS device
Details of the client system:
- OS: Linux Mint 17.3
- Network type: LAN (Ethernet)
Details of the host system (NAS)
- OS: hipserv2 (Linux based by Seagate, default OS in GoFlex Home)
When I try to initiate the ssh session I get a password prompt instead of using my private key to login
File Permissions at /home/user/.ssh
-bash-3.2$ ls -la
total 4
drwxr-xr-x 2 user root 232 Mar 18 16:49 .
dr-xr-x--- 7 user www 616 Mar 18 16:48 ..
-rwxr-xr-x 1 user root 746 Mar 18 16:49 authorized_keys
-bash-3.2$
SSH verbose
Redirect to PasteBin
ssh nas
ssh nas
edited Mar 19 '16 at 1:06
Lordbalmon
asked Mar 18 '16 at 18:48
LordbalmonLordbalmon
1164
1164
bumped to the homepage by Community♦ 6 hours 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♦ 6 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
1
did you tried ssh in verbose mode to see if keys are used at all, or just rejected: ssh -vvv user@server. Check also ownership of your .ssh directory.
– marc
Mar 18 '16 at 18:53
1
You think when you say GoFlex NAS, everyone knows what it is and probably 99% of people here don't. So, let's start with some questions: Where are you trying to login from: A Widows PC or Linux terminal ? When you say you modifiedsshd_config
are you referring to this file residin on your NAS or your local machine ? Also please post the output of this command, run on the NAS devicels -al /home/user/.ssh
– MelBurslan
Mar 18 '16 at 18:54
On hipserv2 system, do you have a login, if you do, login to this box and please post the output fromls -al /home/user/.ssh
where user needs to be replaced by your username on hipserv2 box
– MelBurslan
Mar 18 '16 at 20:01
Hi @MelBurslan, I've updated the OP
– Lordbalmon
Mar 18 '16 at 20:52
@mmmint, I've updated the OP with the verbose output, my system prompts me for the keyphrase but continues on to the password validation
– Lordbalmon
Mar 19 '16 at 1:27
|
show 1 more comment
1
did you tried ssh in verbose mode to see if keys are used at all, or just rejected: ssh -vvv user@server. Check also ownership of your .ssh directory.
– marc
Mar 18 '16 at 18:53
1
You think when you say GoFlex NAS, everyone knows what it is and probably 99% of people here don't. So, let's start with some questions: Where are you trying to login from: A Widows PC or Linux terminal ? When you say you modifiedsshd_config
are you referring to this file residin on your NAS or your local machine ? Also please post the output of this command, run on the NAS devicels -al /home/user/.ssh
– MelBurslan
Mar 18 '16 at 18:54
On hipserv2 system, do you have a login, if you do, login to this box and please post the output fromls -al /home/user/.ssh
where user needs to be replaced by your username on hipserv2 box
– MelBurslan
Mar 18 '16 at 20:01
Hi @MelBurslan, I've updated the OP
– Lordbalmon
Mar 18 '16 at 20:52
@mmmint, I've updated the OP with the verbose output, my system prompts me for the keyphrase but continues on to the password validation
– Lordbalmon
Mar 19 '16 at 1:27
1
1
did you tried ssh in verbose mode to see if keys are used at all, or just rejected: ssh -vvv user@server. Check also ownership of your .ssh directory.
– marc
Mar 18 '16 at 18:53
did you tried ssh in verbose mode to see if keys are used at all, or just rejected: ssh -vvv user@server. Check also ownership of your .ssh directory.
– marc
Mar 18 '16 at 18:53
1
1
You think when you say GoFlex NAS, everyone knows what it is and probably 99% of people here don't. So, let's start with some questions: Where are you trying to login from: A Widows PC or Linux terminal ? When you say you modified
sshd_config
are you referring to this file residin on your NAS or your local machine ? Also please post the output of this command, run on the NAS device ls -al /home/user/.ssh
– MelBurslan
Mar 18 '16 at 18:54
You think when you say GoFlex NAS, everyone knows what it is and probably 99% of people here don't. So, let's start with some questions: Where are you trying to login from: A Widows PC or Linux terminal ? When you say you modified
sshd_config
are you referring to this file residin on your NAS or your local machine ? Also please post the output of this command, run on the NAS device ls -al /home/user/.ssh
– MelBurslan
Mar 18 '16 at 18:54
On hipserv2 system, do you have a login, if you do, login to this box and please post the output from
ls -al /home/user/.ssh
where user needs to be replaced by your username on hipserv2 box– MelBurslan
Mar 18 '16 at 20:01
On hipserv2 system, do you have a login, if you do, login to this box and please post the output from
ls -al /home/user/.ssh
where user needs to be replaced by your username on hipserv2 box– MelBurslan
Mar 18 '16 at 20:01
Hi @MelBurslan, I've updated the OP
– Lordbalmon
Mar 18 '16 at 20:52
Hi @MelBurslan, I've updated the OP
– Lordbalmon
Mar 18 '16 at 20:52
@mmmint, I've updated the OP with the verbose output, my system prompts me for the keyphrase but continues on to the password validation
– Lordbalmon
Mar 19 '16 at 1:27
@mmmint, I've updated the OP with the verbose output, my system prompts me for the keyphrase but continues on to the password validation
– Lordbalmon
Mar 19 '16 at 1:27
|
show 1 more comment
2 Answers
2
active
oldest
votes
on hipserve2 machine, please run
chmod 700 /home/user/.ssh
chmod 600 /home/user/.ssh/authorized_keys
and try again
Thank you for the response but changing the permissions did not work.
– Lordbalmon
Mar 19 '16 at 1:57
add a comment |
First, check the contents of /var/log/auth.log
on the server to find the issue why key authentication is skipped at all.
In the past I came across some tutorials that describe how to achieve a ssh password-less setup, but some are sadly wrong.
Let's start over again, and check every step:
FROM CLIENT - Generate key:ssh-keygen -t rsa
Public and private key (id_rsa.pub
andid_rsa
) will be automatically stored in the~/.ssh/
directory.
Setup will be easier if you use an empty passphrase. If you are not willing to do that, then still follow this guide, but also check the bullet point below.
FROM CLIENT - Copy public key to server :ssh-copy-id user@server
Client public key will be copied to server's location~/.ssh/authorized_keys
.
FROM CLIENT - Connect to server:ssh user@server
Now, if it's still not working after the described 3 steps, lets try the following:
- Check
~/ssh
folder permissions in client and server machine. - Check
/etc/ssh/ssd_config
in the server to ensure thatRSAAuthentication
,PubkeyAuthentication
andUsePAM
options aren't disabled, as they are enabled by default withyes
. - If you entered a passphrase while generating your client key, then you may try
ssh-agent
&ssh-add
to achieve password-less connections in your session. - Check the contents of
/var/log/auth.log
on the server to find the issue why key authentication is skipped at all.
add a comment |
Your Answer
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%2f270742%2fsetup-ssh-login-using-public-key-in-goflex-home%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
on hipserve2 machine, please run
chmod 700 /home/user/.ssh
chmod 600 /home/user/.ssh/authorized_keys
and try again
Thank you for the response but changing the permissions did not work.
– Lordbalmon
Mar 19 '16 at 1:57
add a comment |
on hipserve2 machine, please run
chmod 700 /home/user/.ssh
chmod 600 /home/user/.ssh/authorized_keys
and try again
Thank you for the response but changing the permissions did not work.
– Lordbalmon
Mar 19 '16 at 1:57
add a comment |
on hipserve2 machine, please run
chmod 700 /home/user/.ssh
chmod 600 /home/user/.ssh/authorized_keys
and try again
on hipserve2 machine, please run
chmod 700 /home/user/.ssh
chmod 600 /home/user/.ssh/authorized_keys
and try again
answered Mar 18 '16 at 20:55
MelBurslanMelBurslan
5,34611533
5,34611533
Thank you for the response but changing the permissions did not work.
– Lordbalmon
Mar 19 '16 at 1:57
add a comment |
Thank you for the response but changing the permissions did not work.
– Lordbalmon
Mar 19 '16 at 1:57
Thank you for the response but changing the permissions did not work.
– Lordbalmon
Mar 19 '16 at 1:57
Thank you for the response but changing the permissions did not work.
– Lordbalmon
Mar 19 '16 at 1:57
add a comment |
First, check the contents of /var/log/auth.log
on the server to find the issue why key authentication is skipped at all.
In the past I came across some tutorials that describe how to achieve a ssh password-less setup, but some are sadly wrong.
Let's start over again, and check every step:
FROM CLIENT - Generate key:ssh-keygen -t rsa
Public and private key (id_rsa.pub
andid_rsa
) will be automatically stored in the~/.ssh/
directory.
Setup will be easier if you use an empty passphrase. If you are not willing to do that, then still follow this guide, but also check the bullet point below.
FROM CLIENT - Copy public key to server :ssh-copy-id user@server
Client public key will be copied to server's location~/.ssh/authorized_keys
.
FROM CLIENT - Connect to server:ssh user@server
Now, if it's still not working after the described 3 steps, lets try the following:
- Check
~/ssh
folder permissions in client and server machine. - Check
/etc/ssh/ssd_config
in the server to ensure thatRSAAuthentication
,PubkeyAuthentication
andUsePAM
options aren't disabled, as they are enabled by default withyes
. - If you entered a passphrase while generating your client key, then you may try
ssh-agent
&ssh-add
to achieve password-less connections in your session. - Check the contents of
/var/log/auth.log
on the server to find the issue why key authentication is skipped at all.
add a comment |
First, check the contents of /var/log/auth.log
on the server to find the issue why key authentication is skipped at all.
In the past I came across some tutorials that describe how to achieve a ssh password-less setup, but some are sadly wrong.
Let's start over again, and check every step:
FROM CLIENT - Generate key:ssh-keygen -t rsa
Public and private key (id_rsa.pub
andid_rsa
) will be automatically stored in the~/.ssh/
directory.
Setup will be easier if you use an empty passphrase. If you are not willing to do that, then still follow this guide, but also check the bullet point below.
FROM CLIENT - Copy public key to server :ssh-copy-id user@server
Client public key will be copied to server's location~/.ssh/authorized_keys
.
FROM CLIENT - Connect to server:ssh user@server
Now, if it's still not working after the described 3 steps, lets try the following:
- Check
~/ssh
folder permissions in client and server machine. - Check
/etc/ssh/ssd_config
in the server to ensure thatRSAAuthentication
,PubkeyAuthentication
andUsePAM
options aren't disabled, as they are enabled by default withyes
. - If you entered a passphrase while generating your client key, then you may try
ssh-agent
&ssh-add
to achieve password-less connections in your session. - Check the contents of
/var/log/auth.log
on the server to find the issue why key authentication is skipped at all.
add a comment |
First, check the contents of /var/log/auth.log
on the server to find the issue why key authentication is skipped at all.
In the past I came across some tutorials that describe how to achieve a ssh password-less setup, but some are sadly wrong.
Let's start over again, and check every step:
FROM CLIENT - Generate key:ssh-keygen -t rsa
Public and private key (id_rsa.pub
andid_rsa
) will be automatically stored in the~/.ssh/
directory.
Setup will be easier if you use an empty passphrase. If you are not willing to do that, then still follow this guide, but also check the bullet point below.
FROM CLIENT - Copy public key to server :ssh-copy-id user@server
Client public key will be copied to server's location~/.ssh/authorized_keys
.
FROM CLIENT - Connect to server:ssh user@server
Now, if it's still not working after the described 3 steps, lets try the following:
- Check
~/ssh
folder permissions in client and server machine. - Check
/etc/ssh/ssd_config
in the server to ensure thatRSAAuthentication
,PubkeyAuthentication
andUsePAM
options aren't disabled, as they are enabled by default withyes
. - If you entered a passphrase while generating your client key, then you may try
ssh-agent
&ssh-add
to achieve password-less connections in your session. - Check the contents of
/var/log/auth.log
on the server to find the issue why key authentication is skipped at all.
First, check the contents of /var/log/auth.log
on the server to find the issue why key authentication is skipped at all.
In the past I came across some tutorials that describe how to achieve a ssh password-less setup, but some are sadly wrong.
Let's start over again, and check every step:
FROM CLIENT - Generate key:ssh-keygen -t rsa
Public and private key (id_rsa.pub
andid_rsa
) will be automatically stored in the~/.ssh/
directory.
Setup will be easier if you use an empty passphrase. If you are not willing to do that, then still follow this guide, but also check the bullet point below.
FROM CLIENT - Copy public key to server :ssh-copy-id user@server
Client public key will be copied to server's location~/.ssh/authorized_keys
.
FROM CLIENT - Connect to server:ssh user@server
Now, if it's still not working after the described 3 steps, lets try the following:
- Check
~/ssh
folder permissions in client and server machine. - Check
/etc/ssh/ssd_config
in the server to ensure thatRSAAuthentication
,PubkeyAuthentication
andUsePAM
options aren't disabled, as they are enabled by default withyes
. - If you entered a passphrase while generating your client key, then you may try
ssh-agent
&ssh-add
to achieve password-less connections in your session. - Check the contents of
/var/log/auth.log
on the server to find the issue why key authentication is skipped at all.
edited Mar 19 '16 at 20:15
answered Mar 19 '16 at 19:36
marcmarc
1,5881720
1,5881720
add a comment |
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%2f270742%2fsetup-ssh-login-using-public-key-in-goflex-home%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 tried ssh in verbose mode to see if keys are used at all, or just rejected: ssh -vvv user@server. Check also ownership of your .ssh directory.
– marc
Mar 18 '16 at 18:53
1
You think when you say GoFlex NAS, everyone knows what it is and probably 99% of people here don't. So, let's start with some questions: Where are you trying to login from: A Widows PC or Linux terminal ? When you say you modified
sshd_config
are you referring to this file residin on your NAS or your local machine ? Also please post the output of this command, run on the NAS devicels -al /home/user/.ssh
– MelBurslan
Mar 18 '16 at 18:54
On hipserv2 system, do you have a login, if you do, login to this box and please post the output from
ls -al /home/user/.ssh
where user needs to be replaced by your username on hipserv2 box– MelBurslan
Mar 18 '16 at 20:01
Hi @MelBurslan, I've updated the OP
– Lordbalmon
Mar 18 '16 at 20:52
@mmmint, I've updated the OP with the verbose output, my system prompts me for the keyphrase but continues on to the password validation
– Lordbalmon
Mar 19 '16 at 1:27