How to disable GNOME Keyring on GNOME desktop

Question: I am trying to use gpg-agent for SSH authentication when my key is on a separate USB security key card. However, I notice that when I log in to my GNOME desktop, gnome-keyring-daemon is already running, which appears to interfere with gpg-agent. How can I disable GNOME keyring on my Linux desktop? GNOME Keyring […]
Continue reading…

 

How to resume a large SCP file transfer on Linux

Question: I was downloading a large file using SCP, but the download transfer failed in the middle because my laptop got disconnected from the network. Is there a way to resume the interrupted SCP transfer where I left off, instead of downloading the file all over again? Originally based on BSD RCP protocol, SCP (Secure […]
Continue reading…

 

How to install autossh on Linux

Question: I would like to install autossh on [insert your Linux distro]. How can I do that? autossh is an open-source tool that allows you to monitor an SSH session and restart it automatically should it gets disconnected or stops forwarding traffic. autossh assumes that passwordless SSH login for a destination host is already setup, […]
Continue reading…

 

How to install and access CentOS remote desktop on VPS

Question: I want to install CentOS desktop on VPS, and be able to access the desktop GUI remotely from home. What is a recommended way to set up and access CentOS-based remote desktop on VPS? Nowadays teleworking or remote working with flexible hours is increasingly popular in tech industry. One of the enabling technologies behind […]
Continue reading…

 

How to disable IPv6 on Linux

Question: I notice that one of my applications is trying to establish a connection over IPv6. But since our local network is not able to route IPv6 traffic, the IPv6 connection times out, and the application falls back to IPv4, which causes unnecessary delay. As I don’t have any need for IPv6 at the moment, […]
Continue reading…

 

How to check SSH protocol version on Linux

Question: I am aware that there exist SSH protocol version 1 and 2 (SSH1 and SSH2). What is the difference between SSH1 and SSH2, and how can I check which SSH protocol version is supported on a Linux server? Secure Shell (SSH) is a network protocol that enables remote login or remote command execution between […]
Continue reading…

 

How to fix “sshd error: could not load host key”

Question: When I try to SSH to a remote server, SSH client fails with “Connection closed by X.X.X.X”. On the SSH server side, I see error messages: “sshd error: could not load host key.” What is going on, and how can I fix this error? The detailed symptom of this SSH connection error is as […]
Continue reading…

 

How to fix “X11 forwarding request failed on channel 0”

Question: When I tried to SSH to a remote host with X11 forwarding option, I got “X11 forwarding request failed on channel 0” error after logging in. Why am I getting this error, and how can I fix this problem? First of all, we assume that you already enabled X11 forwarding over SSH properly. If […]
Continue reading…

 

How to enable SSH remote access on VMware ESXi 5

Question: I installed VMware ESXi 5.5 on a bare-metal host. I would like to remote access the ESXi host via SSH, but an SSH server does not seem to be running on it as I cannot SSH to the ESXi host. How can I enable SSH remote access on an ESXi host? When you install […]
Continue reading…

 

How to stream remote MP3 files over ssh

Question: I have a lot of MP3 files stored on a remote server, and I want those MP3 files streamed over the network to a local media player (e.g., VLC or mplayer). What is an easy way to stream remote MP3 files over the network? Assuming that the remote server is running an ssh server, […]
Continue reading…