Convert .pem file to .ppk file in aws using putty - aws-cli

Why do we need to convert .pem file to .ppk file in aws to get access of server from putty?

PuTTY doesn't natively support the private key format (.pem) generated
by Amazon EC2. You must convert your private key into a .ppk file
before you can connect to your instance using PuTTY. You can use the
PuTTYgen tool for this conversion. This tool, available for both
Windows and Unix operating system, can convert keys.
See https://aws.amazon.com/premiumsupport/knowledge-center/convert-pem-file-into-ppk/

Related

Dealing with .pfx certificate in Loadrunner

is there a way in loadrunner where we can use .pfx certificate? I know web_set_certificate_ex() only accepts .pem as a format. but what if the application server is not accepting .pem format and only .pfx format. is there any provision where in we can use .pfx?
See Virtual User Guide, Advanced topics, creating virtual users with visual studio.
Once you have access to a full development environment you can use even the client source, along with whatever certificate model you desire.
You may consider to convert between different formats via openssl tools. I found more details here.

Concatenating or combining ZIP files using SFTP

I am uploading files over 100MB and I am choosing to zip the files, split the .zip and then transferring the file parts. Once transferred to the SFTP, I do not see a command to combine the .zip parts. Does SFTP have such capability? I am using vsftp, which does not appear to have that functionality. I was wondering whether there is a universal SFTP command for the function.
Thank you.
There's draft of copy-data/copy-file extension to the SFTP protocol, which can be used to concatenate files.
But in the most widespread OpenSSH SFTP server and OpenSSH SFTP client (sftp) the copy-data is supported by very recent version 9.0 only. Another servers that do support it are ProFTPD mod_sftp and Bitvise SFTP server.

Web based method to get public key from .pem file

I have created an EC2 instance and I now want to connect to it from a Chromebook. For the time being, I only have access to this Chromebook and I am after a way of generating my public key from the .pem file that Amazon issues.
I am familiar with how to do this via the Linux command line, but I need a web based solution for this.
You need an SSH client for Chrome, try this:
https://chrome.google.com/webstore/detail/secure-shell/pnhechapfaindjhompbnflcldabbghjo

How to convert Domino specific kyr file to pkcs12 on 64-bit windows

I need to get the private key out of my Domino kyr file, to import into another server. The key should be in the best case pkcs12 format. I am aware of the IKEYMAN tool by IBM. However, I cannot use that because I don't have access to a 32-bit windows XP. And unfortunately, only version 5 can understand the kyr format.
It is a very strange conundrum. I hope somebody can help me out.
Just download "kyrtool" from IBM and put it in the appropriate directory. This download contains versions for windows and linux.
Use the show keys command as described in this link to show the private key in Base64 Format. You can then simply convert it into anything you need with e.g. Openssl.

upload nodejs application to AWS EC2

I want to deploy my app (Nodejs + Mongodb) in EC2. After installed Nodejs and MongoDb in EC2 instances, I do not know how to upload my source code to instances and where to upload it?
Thanks!
When you created your instances you should have also created an ssh key that you use to access the EC2 instance via SSH which you clearly have if you were able to install additional packages.
You can use this same key and method to connect to the instance with SFTP and upload the files you want like that.
You could also use scp to copy the files directly from the commandline or from a custom script.
With regard to where to upload the files - that all depends on you. What web servers are you using (if at all). Depending on your application you need to select a location that is accessible via your web server. The default location for an apache server would be /var/www
You can use WinScp (https://winscp.net/eng/download.php) to have an "explorer like" access to your EC2 linux:
Note: The ppk private key was created using the "node.pem" key from AWS. But you must make it accessible by running:
chown :Users node.pem
chmod 400 node.pem

Resources