Seeing escape characters when pressing the arrow keys in python shell

In shells like the interactive python shell, you can usually use the arrow keys to move around in the current line or get previous commands (with arrow-up) etc. But after I ssh into another machine and start python there, I get sessions like: >>> import os >>> ^[[A where the last character comes from arrow-up. … Read more

Extract public/private key from PKCS12 file for later use in SSH-PK-Authentication

I want to extract the public and private key from my PKCS#12 file for later use in SSH-Public-Key-Authentication. Right now, I’m generating keys via ssh-keygen which I put into .ssh/authorized_key, respective somewhere on the client-side. In future, I want to use the keys from a PKCS#12 container, so I’ve to extract the public-key first from … Read more

How to ignore ansible SSH authenticity checking?

Is there a way to ignore the SSH authenticity checking made by Ansible? For example when I’ve just setup a new server I have to answer yes to this question: GATHERING FACTS *************************************************************** The authenticity of host ‘xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx)’ can’t be established. RSA key fingerprint is xx:yy:zz:…. Are you sure you want to continue connecting … Read more

Git on Bitbucket: Always asked for password, even after uploading my public SSH key

I uploaded my ~/.ssh/id_rsa.pub to Bitbucket’s SSH keys as explained, but Git still asks me for my password at every operation (such as git pull). Did I miss something? It is a private repository (fork of another person’s private repository) and I cloned it like this: git clone [email protected]:Nicolas_Raoul/therepo.git Here is my local .git/config: [core] … Read more

Github permission denied: ssh add agent has no identities

This is my first time accessing GitHub and I’m not experienced using a console. I am on a MacBook using Bash. When I try to access GitHub, I get this: git clone [email protected]:dhulihan/league-of-legends-data-scraper.git Cloning into ‘league-of-legends-data-scraper’… Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights … Read more

How to solve “sign_and_send_pubkey: signing failed: agent refused operation”?

Configuring a new Digital Ocean droplet with SSH keys. When I run ssh-copy-id this is what I get: ssh-copy-id [email protected] /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed — if you are prompted now it is to … Read more

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

I’m working to set up Panda on an Amazon EC2 instance. I set up my account and tools last night and had no problem using SSH to interact with my own personal instance, but right now I’m not being allowed permission into Panda’s EC2 instance. Getting Started with Panda I’m getting the following error: @ … Read more