Review your favorite Linux distribution.
Go Back > Blogs
User Name



SSH : add a host to ~/.ssh/known_hosts

Posted 04-05-2020 at 05:06 PM by karanis
Tags ssh

ssh-keyscan -t rsa -H >> ~/.ssh/known_hosts
LQ Newbie
Posted in Uncategorized
Views 90 Comments 0 karanis is offline

SSH first time login without host cert (yes/no) confirmation

Posted 04-05-2020 at 04:30 PM by karanis


If you are on a closed network, let`s say 100s of well known hardware, you may need to skip ssh to skip Host Key Check (which is not adviced but in automated scripts in trusted environments, you require this)

$ ssh -o "StrictHostKeyChecking no" user@host
LQ Newbie
Posted in Uncategorized
Views 123 Comments 0 karanis is offline

OpenSSH common mistakes, tips, and tricks

Posted 10-14-2014 at 11:09 PM by sag47

Here's a post about common mistakes I see made with SSH. A few shortcuts to being more productive when you have a complicated server network. And other neat tips and tricks.

authorized_keys Permissions

The most common problem I see new users attempting to use public key auth is to get the permissions wrong either on their home directory, .ssh directory, or authorized_keys file. Luckily, the openssh project provides a helpful FAQ answer.

The Almighty...
Senior Member
Posted in Uncategorized
Views 2856 Comments 0 sag47 is offline

bashrc tweak - colors in ssh ession

Posted 09-10-2012 at 01:06 PM by NullTerminator
Updated 09-18-2012 at 09:39 AM by NullTerminator

If you use any of a number of remote ssh clients and want to improve the color selection, here's a how to. Please credit the original authors. I'm just making it easier to find.

excellent ref @
 1. Edit the '.bashrc' file. You need to make a few small changes to the existing bash script.

(optional) Backup the file. Copy your existing '.bashrc' file in case you wish to restore it at a latter time. For
LQ Newbie
Posted in Uncategorized
Views 1305 Comments 0 NullTerminator is offline

SELinux and sshd

Posted 01-02-2012 at 04:55 PM by sag47
Updated 08-05-2012 at 12:58 AM by sag47

So I've started using the new Fedora 16 on my main media server (previously F14) and decided to try something new this time. I've always set SELinux to permissive which is a bad idea normally for anything public (which this server isn't but I still want it). Anyway I believe I was testing something before I left for the holidays and ran
setenforce 0
which disables SELinux. I guess at some point it turned back on somehow and I was locked out of ssh. I dug through my logs (/var/log/messages,...
Senior Member
Views 12201 Comments 1 sag47 is offline


All times are GMT -5. The time now is 01:44 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration