What is Pseudo TTY-Allocation? (SSH and Github)

As explained in “gitolite: PTY allocation request failed on channel 0”, it is important to do ssh test connection with -T, because some server could abort the transaction entirely if a text-terminal (tty) is requested. -T avoids requesting said terminal, since GitHub has no intention of giving you an interactive secure shell, where you could … Read more

Convert pem key to ssh-rsa format

No need to compile stuff. You can do the same with ssh-keygen: ssh-keygen -f pub1key.pub -i will read the public key in openssl format from pub1key.pub and output it in OpenSSH format. Note: In some cases you will need to specify the input format: ssh-keygen -f pub1key.pub -i -mPKCS8 From the ssh-keygen docs (From man … Read more

Automatically enter SSH password with script

First you need to install sshpass. Ubuntu/Debian: apt-get install sshpass Fedora/CentOS: yum install sshpass Arch: pacman -S sshpass Example: sshpass -p “YOUR_PASSWORD” ssh -o StrictHostKeyChecking=no YOUR_USERNAME@SOME_SITE.COM Custom port example: sshpass -p “YOUR_PASSWORD” ssh -o StrictHostKeyChecking=no YOUR_USERNAME@SOME_SITE.COM:2400 Notes: sshpass can also read a password from a file when the -f flag is passed. Using -f prevents … Read more

Starting ssh-agent on Windows 10 fails: “unable to start ssh-agent service, error :1058”

Yeah, as others have suggested, this error seems to mean that ssh-agent is installed but its service (on windows) hasn’t been started. You can check this by running in Windows PowerShell: > Get-Service ssh-agent And then check the output of status is not running. Status Name DisplayName —— —- ———– Stopped ssh-agent OpenSSH Authentication Agent … Read more

Best way to use multiple SSH private keys on one client [closed]

From my .ssh/config: Host myshortname realname.example.com HostName realname.example.com IdentityFile ~/.ssh/realname_rsa # private key for realname User remoteusername Host myother realname2.example.org HostName realname2.example.org IdentityFile ~/.ssh/realname2_rsa # different private key for realname2 User remoteusername Then you can use the following to connect: ssh myshortname ssh myother And so on.

How do I remove the passphrase for the SSH key without having to create a new key?

Short answer: $ ssh-keygen -p This will then prompt you to enter the keyfile location, the old passphrase, and the new passphrase (which can be left blank to have no passphrase). If you would like to do it all on one line without prompts do: $ ssh-keygen -p [-P old_passphrase] [-N new_passphrase] [-f keyfile] Important: … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)