Convert PEM to PPK file format

Use PuTTYGen Creating and Using SSH Keys Overview vCloud Express now has the ability to create SSH Keys for Linux servers. This function will allow the user to create multiple custom keys by selecting the “My Account/Key Management” option. Once the key has been created the user will be required to select the desired SSH … Read more

Copying files from server to local computer using SSH [closed]

It depends on what your local OS is. If your local OS is Unix-like, then try: scp username@remoteHost:/remote/dir/file.txt /local/dir/ If your local OS is Windows ,then you should use pscp.exe utility. For example, below command will download file.txt from remote to D: disk of local machine. pscp.exe username@remoteHost:/remote/dir/file.txt d:\ It seems your Local OS is … Read more

Vagrant ssh authentication failure

For general information: by default to ssh-connect you may simply use user: vagrant password: vagrant https://www.vagrantup.com/docs/boxes/base.html#quot-vagrant-quot-user First, try: to see what vagrant insecure_private_key is in your machine config $ vagrant ssh-config Example: $ vagrant ssh-config Host default HostName 127.0.0.1 User vagrant Port 2222 UserKnownHostsFile /dev/null StrictHostKeyChecking no PasswordAuthentication no IdentityFile C:/Users/konst/.vagrant.d/insecure_private_key IdentitiesOnly yes LogLevel FATAL … Read more

How do I reattach to a detached mosh session?

For security reasons, you can not reattach, see https://github.com/keithw/mosh/issues/394 To kill the detached session, use the PID number displayed in that message (that’s the ‘XXXX’ part.) For example, if you see — Mosh: You have a detached Mosh session on this server (mosh [12345]). And can run this command: kill 12345 Also, to close all … Read more

proper way to sudo over ssh

Another way is to use the -t switch to ssh: ssh -t user@server “sudo script” See man ssh: -t Force pseudo-tty allocation. This can be used to execute arbi- trary screen-based programs on a remote machine, which can be very useful, e.g., when implementing menu services. Multiple -t options force tty allocation, even if ssh … Read more

How to ignore ansible SSH authenticity checking?

Two options – the first, as you said in your own answer, is setting the environment variable ANSIBLE_HOST_KEY_CHECKING to False. The second way to set it is to put it in an ansible.cfg file, and that’s a really useful option because you can either set that globally (at system or user level, in /etc/ansible/ansible.cfg or … Read more

WARNING: UNPROTECTED PRIVATE KEY FILE! when trying to SSH into Amazon EC2 Instance

I’ve chmoded my keypair to 600 in order to get into my personal instance last night, And this is the way it is supposed to be. From the EC2 documentation we have “If you’re using OpenSSH (or any reasonably paranoid SSH client) then you’ll probably need to set the permissions of this file so that … Read more