How to setup passwordless SSH into X450a-48t switch
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎01-07-2014 10:03 PM
Create Date: Jun 3 2013 8:19AM
Hi,
I'm trying to setup automated backup of the switch and I'd like to have the script to login to the switch without using password.
How do I setup the SSH keys so I can ssh/sftp from a linux box into the extreme switch without password?
Thanks!
(from juha_a)
Hi,
I'm trying to setup automated backup of the switch and I'd like to have the script to login to the switch without using password.
How do I setup the SSH keys so I can ssh/sftp from a linux box into the extreme switch without password?
Thanks!
(from juha_a)
10 REPLIES 10
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎02-04-2015 03:37 PM
Hi,
I've created the public key with the following command:
create sshd2 key-file host-key sshkey
It created under the root directory the sshkey.ssh and inside it has the public key
I've scp the key file to the remote server ~.ssh/authorized_keys
However I still get the password prompt when I try to ssh from the switch to the remote server.
I want to have this functionality in order to be able to automate some tasks within a universal profile.
What exact commands I need to execute in order to store the public key in the Switch ?
Regards
Sotiris
I've created the public key with the following command:
create sshd2 key-file host-key sshkey
It created under the root directory the sshkey.ssh and inside it has the public key
I've scp the key file to the remote server ~.ssh/authorized_keys
However I still get the password prompt when I try to ssh from the switch to the remote server.
I want to have this functionality in order to be able to automate some tasks within a universal profile.
What exact commands I need to execute in order to store the public key in the Switch ?
Regards
Sotiris
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎02-04-2015 03:37 PM
Have you renamed the key file as sshkey.pub in the remote host?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎01-07-2014 10:03 PM
Create Date: Nov 8 2013 12:29PM
No there is not such way. Because it's like ssh on Linux. Considering situation when a I don't have may SSH key than switch ask me for a password. So in my opinion there is one (and only) way how to achieve this:
Create account with strong password for example with 30 pseudorandom digits and then apply configuration with ssh-keys which provide in post above.
If there is another way please share it! 😄
Bye. (from steja)
No there is not such way. Because it's like ssh on Linux. Considering situation when a I don't have may SSH key than switch ask me for a password. So in my opinion there is one (and only) way how to achieve this:
Create account with strong password for example with 30 pseudorandom digits and then apply configuration with ssh-keys which provide in post above.
If there is another way please share it! 😄
Bye. (from steja)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎01-07-2014 10:03 PM
Create Date: Oct 24 2013 1:13PM
Is there a way of configuring the account so it won't be possible to login with password, only with ssh key?
(from Luis_Coelho)
Is there a way of configuring the account so it won't be possible to login with password, only with ssh key?
(from Luis_Coelho)
