proper way to sudo over ssh

I have a script which runs another script via SSH on a remote server using sudo. However, when I type the password, it shows up on the terminal. (Otherwise it works fine) ssh user@server “sudo script” What’s the proper way to do this so I can type the password for sudo over SSH without the … 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

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

How to use Sublime over SSH

I’m trying to use Sublime Text 2 as an editor when I SSH in to my work server, and I’m stumped. I found this http://urbangiraffe.com/2011/08/13/remote-editing-with-sublime-text-2/ (among many other posts) that looks like it might help, but I don’t follow it exactly, particularly with what values I should put in for the remote variable in line … Read more

Why does an SSH remote command get fewer environment variables then when run manually? [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 9 years ago. Improve this question I have a command that runs fine if I ssh to a machine and run it, but fails when I try to run … Read more

Multiple GitHub Accounts & SSH Config

I’m having some trouble getting two different SSH keys/GitHub accounts to play well together. I have the following setup: Repos accessible from one account using [email protected]:accountname Repos accessible from another account using [email protected]:anotheraccount Each account has its own SSH key. Both SSH keys have been added and I have created a config file. I don’t … Read more