• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

AI, Linux, Cloud and DevOps

  • Home
  • Resources
    • Learn Linux
    • Articles
  • My Projects & Work
    • My Nagios Plugin
    • My Dockerhub Repo
    • My WordPress plugins
    • My Github Repos
  • Facebook Page
  • Contact
  • Privacy Policy
  • About Me

ssh

Ubuntu / Debian : sshd error could not load host key

October 8, 2018 by Sharad Chhetri Leave a Comment

sshd error

Summary We recently encountered with ‘sshd error: could not load host key’. The fixing is quite easy in Ubuntu Linux system yet you should be careful while solving the issue. This time we found this problem in Ubuntu 18.04 LTS Server Edition whereas the method is applicable to other Ubuntu and Debian based Linux Operating […]

Filed Under: Articles Tagged With: ssh

Centralize authorized_keys file on Linux / Unix system

May 31, 2015 by Sharad Chhetri Leave a Comment

Authorized_keys are important files which has the information of public keys for public key authentication. By default location is ~/.ssh/authorized_keys. Here, ~ is users default home directory in system. While working on SSH, we got requirement to centralize the authorized_keys of all users existing in system. In most of the system for SSH we use […]

Filed Under: Articles Tagged With: ssh

Protect ssh with Google Authenticator on Ubuntu 14.04 LTS

March 1, 2015 by Sharad Chhetri 2 Comments

The tutorial is about how we can protect ssh with Google Authenticator on Ubuntu 14.04 LTS server . Google authenticator is a security application which implements time based one time password (TOTP) security tokens. It is often also called as “Two steps verification” . The server in which Google Authenticator has been setup , to […]

Filed Under: Articles Tagged With: google authenticator, ssh

How to create OpenSSH rpm package and its upgrade

January 18, 2015 by Sharad Chhetri 27 Comments

In this tutorial we will create rpm package of OpenSSH version 6.7 stable version and will do OpenSSH upgrade. You may be wondering why it is required to create rpm package of OpenSSH version. The answer is because of CVE-2014-2532 . We recently notified with the CVE-2014-2532 , which is a openssh AcceptEnv environment restriction […]

Filed Under: Articles Tagged With: ssh

error: Could not load host key

January 17, 2015 by Sharad Chhetri Leave a Comment

Recently while upgrading the OpenSSH server, we faced some issue. This time, the issue was related to ssh key and we got number of lines in message log file with information – “error: Could not load host key” . Here are some brief detail taken from our system. Jan 17 11:14:10 localhost sshd[6294]: error: Could […]

Filed Under: Articles Tagged With: ssh

error: Could not get shadow information for root

January 17, 2015 by Sharad Chhetri 1 Comment

Recently created rpm package from OpenSSH 6.7 tar ball package. After successfully creating rpm and upgrading the OpenSSH server, met with issue – error: Could not get shadow information for root .Given below is some section of the error found in messages log (/var/log/messages)Jan 17 11:21:17 localhost systemd: Started SYSV: OpenSSH server daemon.Jan 17 11:21:26 […]

Filed Under: SSH Tagged With: ssh

Install Openssh server on Ubuntu Desktop / Server

November 16, 2014 by Sharad Chhetri 2 Comments

FAQ : How to connect to Ubuntu Desktop / Server by using ssh. I just installed Ubuntu 14.04 LTS Desktop edition and have not found ssh service running in system. Answer : OpenSSH is a FREE version of the SSH connectivity tools. It provides the encrypted communication between computers by using ssh protocol. History of […]

Filed Under: Articles, SSH Tagged With: ssh

CentOS 7 / RHEL 7 : change OpenSSH port number ( SELINUX enabled )

October 15, 2014 by Sharad Chhetri 12 Comments

The tutorial will explain about how to change default ssh port number in OpenSSH Server on CentOS 7 and RHEL 7 . We will change the SSH default port no. 22 to our desired number and we will keep SELINUX enabled. We will also add new firewalld rule with respect to new ssh port number. […]

Filed Under: SSH Tagged With: ssh

How to install ssh server on Ubuntu

June 27, 2014 by Sharad Chhetri Leave a Comment

SSH, the abbreviation is Secure Shell. It is a software program use the secure shell protocol to accept connection from remote computers.SSH is TCP based protocol. By default the ssh protocol listen at port no. 22 . You can also customize the port number but always remember while changing the ssh port no. it should […]

Filed Under: Articles, SSH Tagged With: linux command, ssh

SCP file and directory in linux and Unix like operating system

September 23, 2013 by Sharad Chhetri Leave a Comment

SCP stands for secure copy.It is based upon SSH (Secure Shell) protocol.SCP is used for securely transferring the files between local and remote system. Note: If SSH service is not running or deny by firewall or IPTABLES of system then SCP will also not work. Syntax: scp SOURCE-FILE-LOCATION TARGET-LOCATION (1) SCP file from local to […]

Filed Under: Articles, SSH Tagged With: scp, ssh

run command in remote linux / unix system by using ssh

September 21, 2013 by Sharad Chhetri Leave a Comment

How to run command in remote linux / unix system by using ssh If you are working as a linux system admin, it is important to know how you can execute the command in remote linux or unix based operating system by using ssh.The method is very useful and you can also use it in […]

Filed Under: Articles, SSH Tagged With: ssh

how to deny root ssh access in linux server

June 30, 2013 by Sharad Chhetri Leave a Comment

how to deny root ssh access in linux server For security point of view we generally restrict root direct ssh access in server.But keep in mind you also must have user who can access the server other than root. So before doing this practical ,check if you have access to server with other user or […]

Filed Under: Articles, SSH Tagged With: ssh

Change the default port number of ssh server

June 25, 2013 by Sharad Chhetri Leave a Comment

Change the default port number of ssh server SSH Default Port no. = 22 To change the default port number of ssh server hardly takes a few steps but with the point of security it is important to change the default port no. 22 After this you can also use the anti port scan script […]

Filed Under: Articles, SSH, Tips And Tricks Tagged With: ssh

SSH WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED

June 3, 2013 by Sharad Chhetri Leave a Comment

REMOTE HOST IDENTIFICATION HAS CHANGED

When you try to ssh the another remote Linux/Unix machine , you might have encountered with the WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! . This message we have often seen when we work in Linux machines. In this post we have provided the Reason and Solution on this Warning. root@tuxworld:/tmp# ssh 10.10.0.16 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: […]

Filed Under: Articles, SSH, Tips And Tricks Tagged With: ssh, troubleshooting

How To Get SSH Public Key Fingerprint Information

June 3, 2013 by Sharad Chhetri Leave a Comment

ssh public key fingerprint

Long time ago one of my U.S system admin was very security conscious. He asked me to create id_rsa.pub key in server. I created the key with ssh-keygen -t rsa command. And send it him through encrypted email. Next day he wrote me ,what is the ssh key fingerprint ? First let’s have some introduction. […]

Filed Under: Articles, Linux Commands, SSH, Tips And Tricks Tagged With: linux command, ssh

  • Page 1
  • Page 2
  • Go to Next Page »

Primary Sidebar

Articles

  • Install n8n docker in Ubuntu for practicing
  • Bash Script: MySQL Database backup to AWS S3
  • Automate no touch Jenkins setup wizard on docker (jcac)
  • How to run and configure Jenkins in Docker container
  • Complete Guide: How to install Nagios Monitoring on AlmaLinux / Rocky Linux
  • Install KVM on Ubuntu 24.04 LTS ( Bash Script )
  • How to install GIMP 2.10 on Ubuntu / Debian
  • 5 ways to check Ubuntu version of system (commands and GUI)
  • How To Solve Forgot MySQL / MariaDB Root Password
  • Create Self Hosted Build Agent Docker Image for Azure DevOps

Copyright © 2026 ·
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From India.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy