Jail SSH users to SFTP only
… or “confine untrusted users to their home directory (and give them no shell access as well)”
Deny shell access to clients on a SSH Debian APT Repository.
So you’ve setup your company secured internal Debian APT repository server by allowing apt operations only via SSH with prior public key exchange. Great.
Speed up OpenPGP key creation on remote server
Since creating an OpenPGP key requires some randomness (eg. move mouse, reading or writing from/to File System), the process of creating it on a remote connected host (via ssh) may take a lot of time or even get stuck.
Securing SSH on non standard port with Fail2ban
I stumbled upon the problem of fail2ban not banning after I had moved my ssh server to non standard port (let’s say 22022).
We care about privacy..
..And that’s why I use to hide the most server signatures I can on production servers.
No more ssh timeouts
In the unlikely event of receiving a phone call while editing from remote an important config file with vi, you surely have experienced that PUFF! your connection to the server is stuck, your file is stuck as well, and all your editings are lost.
Securing SSH with Swatch
You already know that it is not so smart to leave SSH running on your servers on default port and accessible from every internet address (ie. no firewall restrictions, no host allow/deny).. but in real world it happens to do so since, let’s say, you have no static IP, you have no access to firewall rules and so on.
Setting up two-factor authentication SSH on Fedora 16 x86_64 (with Google Authenticator)
Today we’ll take a look on how to setup SSH to take advantage of the one-time passcode support provided by Google Authenticator package.
SSH with keys but keeps asking for passwords
Mar 2 14:42:47 polpot sshd[1794]: Authentication refused: bad ownership or modes for file /home/muhammar/.ssh/authorized_keys
One day or the other it will happen again, and again you will forget how to fix it. Fact.