Managing Virtual Servers In Bluemix
Posted By : Rajat Kukrety | 24-Dec-2016
To manage virtual servers in Bluemix we can choose any of the task:-
1) KEY-PAIR AUTHENTICATION:-
Inject an SSH key into a virtual server to use key-pair authentication to connect to the virtual server. You can create SSH key with Graphically in Bluemix. You can also import an SSH key into Bluemix.
Steps:-
- In the Bluemix dashboard, select RUN VIRTUAL SERVERS.
- In the Virtual Server settings section import key.
- Enter the key name in the name of the SSH key by which you want to authenticate the user in Bluemix.
- Paste the contents of cloud.key.pub into the Public Key section.
- Using OpenStackClient(OSC).
Also create SSH key locally and then import key into Bluemix:-
- You can create an SSH key in your local system and optionally associate a pass phrase to it ( Used to increase Security).
- When you create an SSH security key outside Bluemix, you can associate a passphrase. This pass phrase is owned by you and you can use it to decrypt the private encrypted key.
- For UNIX users, SSH keys(public cloud.key and private cloud.key.pub) can be generated with the ssh- keygen command (ssh-keygen -t rsa -f cloud.key).
2) LOGGING VIRTUAL SERVER INSTANCE FROM LINUX TERMINAL:-
Before Logging consider the following:-
When the virtual server is created from a virtual server image, you must inject the SSH key. When you use a custom virtual server image that includes a user ID and password, you can access the virtual server by using the credentials of the virtual server image.
Run the following command:-
ssh -i path/<private_key_name> <username>@<hostname> -p <port_number>
->path is the location of SSH private key in your system.
->private_key_name is the name of the private SSH key in your system.
->username is a virtual server user ID.(default value - ibmcloud).
->hostname is the name of the host that is associated with the public IP or the public IP address.
->port_number is a port that is enabled for remote connections in the VM.
THANKS
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Rajat Kukrety
Rajat is a bright Lead Java developer with sound knowledge in JAVA, Spring Other than programming his area of interest are listening music and reading novels.