Skip to content →

Tag: ssh

Set keyfile to use for SFTP

If you want to specify the keyfile used for an SFTP connection, you can use the following:


Generating Public & Private Keys Using PHPSECLIB

A few tasks that I’ve been working on this weekend have needed public/private key pairs. The very useful phpseclib library provides the tools that you need to generate these within your application.


MacOS Sierra Asking for SSH Passphrase

There’s a recent change in the handling of SSH keys in MacOS Sierra that means you need to enter your passphrase each time a key is required. There’s an open Radar issue about it and it’s intended behaviour now. You can work around it by implementing one of the solutions at the links below, I personally went with adding: