Category: SSH

How to Log SSH Key Usage for Shared Accounts

Tracking SSH activity on shared accounts can be challenging. By default, logs only show that a public key was accepted, not which key. With a simple tweak to your sshd configuration, you can log the fingerprint of each key used, making it easy to trace access back to individual users. In this article, we’ll show you how to enable verbose logging, locate the right log files, and map fingerprints to people—giving you a reliable audit trail of SSH access.

Read More »

Using SSHFS To Mount Remote Filesystem

If you need to do a lot of file operations against a remote ssh/sftp server then sshfs might be the perfect tool. sshfs is a FUSE filesystem that you can mount onto a local mount point. Once mounted you can manipulate the files as if there were local. Here’s the project site: http://fuse.sourceforge.net/sshfs.html You might need to install with yum or apt-get:

After sshfs installed you can use it like this:

You’ll be prompted for a password unless you has keys setup with the remote server. Now you can copy files to and from under mymount/.

Read More »

Putty SSH Tunnel for RDP

On occasion I need to use Remote Desktop Protocol (RDP) to access a Windows server that is not directly available on the Internet. For example I might have SSH access to a Linux host on the target network. Or the Windows host has source access controls limiting access to a specific network when I’m traveling. The solution if to setup an SSH tunnel with Putty from my Windows desktop to the “gateway” or “bastion” host and then send the RDP through this tunnel. So here’s the example parameter: RDP is a TCP protocol over port 3389. My laptop has a dynamic address. The target Windows server has an IP address of 10.10.10.10 and is located on a private network. I have a Linux server inside the private network at 10.10.10.5. There’s a port forward on the firewall that allows SSH to the Linux server on the public address 123.123.123.123 on

Read More »

Categories

Get a free consultation from Reliable Penguin

Submit the form—or for immediate service call 866-649-7984.