Hello and welcome to the SAP HANA Academy.
The topic of this video tutorial series is SAP HANA platform Installation and Update
and in this video, I will show you how to use PuTTY secure copy to transfer files tothe HANA server.
Hi, I am Denys van Kempen.
To connect to the HANA system you could, of course, work with username and password but these days,
using secure shell (SSH) and public/private keys is more common.
In case your HANA system is running in the cloud somewhere, typically,
these keys have been created when you created the VM (the virtual machine).
Here, I am connect to the SAP Cloud Appliance Library (CAL) and from the Instances page
you can download the private key (assuming you stored it when you created the VM).
This instance is running in Microsoft Azure but this would work the same if the instance
was running on the Google Cloud Platform or Amazon Web Services.
How to work with public/private key is a bit different on each cloud provider so this would take us a bit off-topic,
but, in case you are not working with CAL, I assume here that you have stored the private key of the VM.
This is how such an RSA private key looks like.
You have probably seen it before.
You can open the file with any text editor.
I will copy the contents to my clipboard
and then switch to a Windows computer and create a new text document.
I will name it key.
It does not matter, any name you want.
Open the file and paste in the contents of the clipboard.
Close and save the file.
Then, I will open PuTTYgen.
PuTTY is a common secure shell client for Windows, so you can connect to Linux servers.
It is freeware.
If you download PuTTY, it will come with a number of utilities, one of which is the PuTTY Key Generator.
It will convert a private key from text file to a PPK file (PuTTY Private Key).
First we will load the file.
Make sure All Files (*.*) is selected here.
Open.
Then, as you can read,
to use this key with PuTTY, you need to use the “Save private key” command to save it in PuTTYs own format.
OK
Save private key.
There is a warning if you save the key without passphrase.
This protects the key with a password.
I am the only one using this Windows computer, so I will not set a passphrase but your security
requirements may require you to do otherwise.
Yes.
Give it a name.
I will be using saphana here
Save
and then we can close the PuTTY Key Generator.
If I now open PuTTY and load a saved session.
Expand SSH under Connection and select Auth then I can enter the path to the private key file
for authentication
Let’s return to Session and click Save
Open
and we are connected.
Have a lot of fun!
Additionally, I can now also start Pageant, another PuTTY utility
It will start minimised in the system tray.
Select Add Key
Open the same saphana PuTTY private key file again and now,
if I run the PuTTY secure copy command (pscp) to copy files from my Windows client to the HANA server,
I no longer have to provide a password as pscp is using Pageant to connect.
OK
Then, if we switch to the HANA server
To the location where we uploaded the files.
Here we have them.
This is the full media set of SPS 02.
About 15 GB.
The files have been compressed with WinRAR by SAP.
On Windows, this would be a self-extracting set.
Just double-click the EXE file and it will extract the other RAR files for you.
On Linux, we can use unrar.
You might have to download it, it is freeware.
The advantage of uploading the whole set to the HANA server
is that all the files keep their original file permissions
unrar x (for extract) filename
And off we go.
This takes about 2 minutes, fast forward, and all files are extracted.
Change directory
List
Change directory DATA_UNITS
And here we have all components: CLIENT, SERVER, STUDIO, SDA, XSA, and so on.
OK.
So much about transferring files and extracting.
Thanks for watching.
You can find more video tutorials on our YouTube channel.
If you would like to be informed about new video tutorials, please subscribe to our channel.
You can connect with us on LinkedIn or follow us on Twitter - as well for updates -
and we also have a page on Facebook and Google+.
If you are watching this video on YouTube, do not hesitate to leave your comments to
the video page and, if you like, give us your vote on his video.
Thank you for watching.