Category Archives: ssh

PHPHOST BLOG

Web Hosting Related Articles You May Need

[one-liner]: Improving the performance of SSH Tunnels using Alternative Ciphers; when displaying X11 Apps

Background

Have you ever used an ssh tunnel to try and remotely display an X windowed application and then wished you hadn’t, because the performance was so bad you’d be waiting till next week for the window to come up?

Read on because here’s how you can make this much more tolerable & usable.

Solution

There are 2 […]

Continue reading

Posted in one-liner, shell, ssh, Syndicated, tip, tips & tricks | Comments Off on [one-liner]: Improving the performance of SSH Tunnels using Alternative Ciphers; when displaying X11 Apps

[one-liner]: Working with ssh-keygen & SSH Key Pair Files

Background

Here are some typical examples for creating ssh RSA key files. SSH keys are generated & modified using the command ssh-keygen.

Example #1 – defaults

For starters here’s what happens when you run ssh-keygen with just it’s defaults:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
% ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/jaml/.ssh/id_rsa):
Enter passphrase (empty for no […] Continue reading

Posted in linux, one-liner, Security, shell, ssh, Syndicated, tips & tricks | Comments Off on [one-liner]: Working with ssh-keygen & SSH Key Pair Files

[one-liner]: Working around the SSH error message: Too many authentication failures for root

Background

Yesterday I ran into an issue while trying to ssh to one of my computers. I started getting this error, Too many authentication failures for root. At first I thought it has something to do with PAM or some sort of login detection protection related to /var/log/btmp (a log file maintaining bad login attempts). Turns […] Continue reading

Posted in linux, one-liner, Security, shell, ssh, Syndicated, sysadmin, tip, tips & tricks | Comments Off on [one-liner]: Working around the SSH error message: Too many authentication failures for root

See who’s poking your Linux box

If you’re using SSH and you have your ports wide open to the world, your best bet would be to install fail2ban. If you’re curious though as of whom is trying to get in by bruteforcing your SSH passwords, you might get a clear view with the following command:
grep “POSSIBLE BREAK-IN ATTEMPT” /var/log/auth.log
This will verbose […] Continue reading

Posted in cli, fail2ban, Security, ssh, Syndicated, System | Comments Off on See who’s poking your Linux box