LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

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 192.168.2.124 >> ~/.ssh/known_hosts
LQ Newbie
Posted in Uncategorized
Views 143 Comments 0 karanis is offline
Old

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

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

THIS IS NOT ADVICED

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 246 Comments 0 karanis is offline
Old

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 3232 Comments 0 sag47 is offline
Old

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 @ http://ubuntuforums.org/archive/index.php/t-41538.html
Code:
 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 1453 Comments 0 NullTerminator is offline
Old

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
Code:
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 12727 Comments 1 sag47 is offline

  



All times are GMT -5. The time now is 08:29 AM.

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