Gentoo Server – Enable X Forwarding over SSH | If running Gentoo as a server, X forwarding might not be working. The typical error you will see is: X11 forwarding request failed on channel 0 Here is the fix!
How to login via SSH to Amazon EC2 instance
How to login via SSH to Amazon EC2 instance | After launching a Linux Amazon EC2 instance, you can ssh in by using the private key (key pair download) provided in the AWS console. I’ll show you how! 1. In the AWS console, a key pair can be generated. Download the key pair (private key, .pem file) from the console. 2. Next, move this .pem
Troubleshooting SSH Server Logs and Error Messages
Troubleshooting SSH Server Logs and Error Messages | ssh logs can have various messages that are all difficult to interpret as the exact meaning is all based on the situation or circumstance. Below are some general tips to keep in mind if you run across any of these messages in your logs! Example 1 If you see this, someone is trying random logins
This account is currently not available
This account is currently not available | This account is currently not available If you get this message attempting to ssh in or su’ing as another user, there is no valid shell set for this user. You can quickly inspect this by looking at the /etc/passwd file. Check for an entry that has something like ‘/bin/false’ or ‘/bin/nologin’ for the shell: userdude:x:111:113::/home/userdude:/bin/false
Remote Access Without Opening Ports
Remote Access Without Opening Ports | Q. How can I access my computer or family’s computer remotely without having to open up ports in the firewall? A. Using a [free] third party app is the solution Here are a few free* solutions to connect remotely and keep your home ip ‘stealth’. (*Free for non-commercial use.) These work with Mac OS X,
Troubleshoot ssh Authentication Failure
Troubleshoot ssh Authentication Failure | ssh has a built in debug mode from the client side to provide information in troubleshooting a connection. This will provide information such as mismatch in client/server configuration options, key conflicts, permission problems, and various other useful tidbits. To connect in debug mode, simply add -vvv to the end. You can use up to three
Protect Against Brute Force with ufw
Protect Against Brute Force with ufw | ufw is the super easy firewall interface featured in Ubuntu and also the latest Debian. Somewhat like fail2ban, one feature of ufw is built-in rate limiting to protect against brute force attacks. While this could be used on any port, a common use is on port 22 to protect against ssh dictionary attacks or other
SSH Password Login From Specific IP Ranges
SSH Password Login From Specific IP Ranges | Want to require ssh keys from remote sources, but then allow ssh passwords from your local home network? It is easy to make this specific configuration or alter as desired for your server. I’ll show you how! 1. Edit the sshd_config file sudo nano /etc/ssh/sshd_config In this file, edit the existing line PasswordAuthentication to ‘no’



