How to connect to the Linux Converged Cloud Machine ?
This article will detail all the procedures to connect to the Linux Converged Cloud Machine using PuTTY and FileZilla.
In order to follow the different procedures, you will need to install two programs: PuTTY and FileZilla.
1. Connect to the Linux Converged Cloud Machine with PuTTY
1.1. Generate Private and Public Keys with PuTTYgen
Once you have installed PuTTY, the PuTTYgen application will be automatically installed. Please launch it after the PuTTY installation.
Once launched, this window will appear :

1.1.1. Configuration
To generate your public and private keys, make sure that the "RSA" checkbox is checked.

1.1.2. Generation of the keys
Once the "RSA" checkbox checked, press the "Generate" button. Please note that to generate your key, you have to move the mouse in the "Key" panel until the end of the key generation.



Once the key is generated, you will see this window :

You can now send (copy/paste) the Public key contained in the "Key" panel to the owner of the machine you want to connect to, who will add it to the file authorized_keys contained in the /home/ccloud/.ssh directory.
Please note that to access this directory and modify the authorized_keys file, the owner must be logged as root (sudo su). Please make sure to paste the Public keys on a new line inside the file and save it.
For your personal use, make sure to download the public and private key by pressing the two buttons related to this action and register these two keys under the names "publickey" and "privatekey" respectively in your local machine. Please also make sure to save it on your local drive and not on your OneDrive.

1.2. Connect to the Linux Converged Cloud Machine with PuTTY
To be able to do this step, it is imperative that your key has been added to the machine by the owner. Once confirmed, you can start this step.
Open the application this time the PuTTY application. This window will appear :

Enter in "Host Name" textbox the IP Address you want to connect to (for the Suse Machine it's : 10.237.168.160). Enter in the "Saved Sessions" textbox this : "machinesuse" and click the "Save" button.

Now, in the categories on the left, navigate to "Connection", "SSH" and click on "Auth". Click the "Browse" button and browse your private key you saved.

Then go to "Connections" then "Data" and in the textbox "Auto-login username", type "ccloud" so that you don't have to retype the login at each new connection.

You can now click on the "Open" button at the bottom right to access the Linux Converged Cloud machine. Once connected, you will be able to perform all your desired actions.
NOTE : if you have the "Couldn't load private key - Putty key format too new" error while connection to your CCloud machine, please follow the steps here and retry.

2. Connect to the Linux Converged Cloud Machine with FileZilla
2.1. Configuration
To start the configuration process, open the application you downloaded named FileZilla. This window will appear :

Click "Edit" and "Settings..." :

In the categories on the left, navigate to "Connection", "SFTP". Click the "Add key file..." button and browse your private key you saved before in your local machine. Click "OK" when the key is correctly imported.

Now, click "File" at the top left, then click on "Site Manager..." :

Create a new site by hitting the "New site" button and name it as you want.

In the "Protocol" combobox, select "SFTP - SSH file Transfer Protocol".

In the "Logon Type" combobox, select "Normal".

Once done, enter the credentials of the machine namely its IP address (10.237.168.160 for the Suse Machine), its port ("22" for the Suse Machine), and its password if needed. Note that you can let the port field empty.

Then in the Logon Type field, select "Key file" and import your private key saved before in your local machine.
In the User field, enter "ccloud".
Click on the "Connect" button. And you are now connected to your Linux Converged Cloud Machine.
NOTE : if you have the "Couldn't load private key - Putty key format too new" error while connection to your CCloud machine, please follow the steps here and retry.

3. Connect to the Linux Converged Cloud Machine with Windows (PowerShell)
NOTE : if you have the "Couldn't load private key - Putty key format too new" error while connection to your CCloud machine, please follow the steps here and retry.
For this section, you'll need to open PowerShell and PuTTYgen.
First, open PuTTYgen. Navigate to "File" and "Load private key" as follow :

Browse your private key and your folder and open it. Once done, go to "Conversions" and select "Export OpenSSH key" :

Save your key under the name "privatekey".
Now, open your PowerShell application and type this command line : ssh -i "<path of your private key you just saved>" <username>@<IP Address>
Hit enter and you will be connected to your machine.

wechat: ywkonline
专注于SAP运维、升级、迁移
出处:http://www.cnblogs.com/weikui/


















浙公网安备 33010602011771号