Tag: ssh
-
Using multiple deploy keys on github using .ssh/config
You can use multiple deploy keys for Github created with ssh-keygen following with these steps. You have to add to your ~/.ssh/config If you haven’t added your github name on git: Then clone your repository specifying your custom host, adapting what github suggest to you on repo page: If you have enabled push permissions you […]
-
Disable password authentication on sshd
To disallow password authentication on ssh, adduser –disabled-password will not disable openSSH password. To disable the password authentication, you have to put these values on /etc/ssh/sshd_config to: PasswordAuthentication no UsePAM no PermitRootLogin no Then you’ve to: to apply changes. Connection will not be reset so before logout try to login on a different terminal to […]
-
Django and Drupal integration using drush via SSH
Some months ago I talked about how to achieve a unified login from Django to Drupal using drush. The basic assumption was that both Drupal and Django are on the same server. What if the two components are on different servers? Paramiko is a SSH2 protocol library aimed to provide simple classes to make SSH […]