Unsolved
This post is more than 5 years old
1 Rookie
•
62 Posts
0
2852
How to setup ssh-key pair between Vplex mangement station and a unix host
Current environment includes one 4 engine vplex local cluster. I want to be able to setup rsa-key pair between my solaris box and vplex management station. This will help me to run my vplex scripts from my solaris box instead of running them from vplex management station. I need step by step instructions on how this can be achieved.
Edit 1. I was able to generate a RSA key in my solaris box using the following steps ssh-keygen -t rsa
Key was created in the following file id_rsa.pub
Now can some one explain where on VPLEX i should put this key ? I found a path with multiple files on vplex.
service@blah:/etc/ssh> ls
moduli sshd_config ssh_host_dsa_key.pub ssh_host_ecdsa_key.pub ssh_host_key.pub ssh_host_rsa_key.pub
ssh_config ssh_host_dsa_key ssh_host_ecdsa_key ssh_host_key ssh_host_rsa_key
Where should i put the key i generated in my solaris box ?
Message was edited by: ayrton*senna
Ayrton_Senna1
1 Rookie
1 Rookie
•
62 Posts
0
August 4th, 2015 12:00
Dual authentication is not a problem for executing scripts for VPLEX. We can use VPLEX in built EXPECT function and write a script and save it in /home directory of VPLEX mgmt server. To understand what i am talking you can see the following link Re: How script Vplexcli.
This way scripts can be run from Vplex mgmt station, my idea is to setup rsa-key pair between between my solaris box and vplex mgmt station, so that i can run the scripts stored in VPLEX and collect its output in my SOLARIS box. I believe this can be achieved.
ThomDaleyPPI
108 Posts
0
August 4th, 2015 12:00
Hi,
So I can't answer the SSH question but I don't think you'll be able to run a VPLEX script from your Solaris box though SSH. Remember when you SSH to the management station you then have to run vplexcli which will prompt you again for a username and password. There may be a way to get past that but I wouldn't know how to do it.
Thanks,
Thom
ThomDaleyPPI
108 Posts
0
August 4th, 2015 13:00
Thanks for helping me out, sorry I couldn't help you!
gvaidman
20 Posts
0
September 19th, 2015 09:00
You need to add the contents of your "id_rsa.pub" to the "authorized_keys" file on the VPLEX. This would not be in the /etc/ssh directory you've discovered, but under a directory called ".ssh" in the home directory of the user you're connecting to; I'm assuming this would be "service."
There's a reasonable how-to guide here: SSH with Keys HOWTO: SSH with Keys in a console window
Scroll down to section 4.4 in that guide, as you've already created your keys.