SSH

Recent in SSH

How to run commands on a remote machine using ssh(no interactive shell)

We all use ssh to access machines remotely, but not many know that instead of using a shell we can use ssh to simply run a command on the remote system. Just add the command, you want to be executed, after the user@host part and instead of throwing an interactive shell, ssh will run the command on the remote machine and show you the output(if any).

Here is a simple illustration:

How to secure and optimize SSH login using sshd_config

The increased hacking attempts these days convinced me that password alone won't save my system from the attackers out there. For those of you who think that your system is safe because of some complex password, then think twice, because there is always a chance that a brute force attack from some dedicated server(s) might break it. A good password is a decent start, but its definitely not the end. In this tutorial, I will tell you some ways to make your ssh login more secure by making simple changes to the sshd_config file.

SSH login without Password

Alright! So this one day, I'm talking to a friend. She's telling me about this real cool movie she heard about...2012 or something (which btw... WATCH! ). Now I'm also typing my password on an ssh server, and I happen to mistype. Now I have a feeling I've done so, so I press Backspace till I think nothing could ever have lasted here and type again. My lucky day it was, for I happen to mistype again. That was when it hit me! There's gotta be a way around this password thingy. This is why I love being a Linuxer. There's always a way out of everything!!!

How to: Mount Remote Directories using sshfs

So, we had this lab last week, doing some hands on work on Xen. While performing a task, one of the requirements was to make the directory structure look exactly the same as the one on the remote machine. One way, was to manually change the directory contents - filenames etc. and make it look similar to that on the remote system(pathetic way ), the other was to mount it remotely(better way). Thats when I came to know about this really quick and secure way of mounting remote locations using sshfs.

Manage your ssh tunnel redirects graphically using Gnome SSH Tunnel Manager

gSTM provides you with a graphical front-end to manage various ssh tunnels easily. This tool is ofcourse useful for people who have to deal with ssh tunnels all the time but even if you don't use tunnels frequently or you can hardly remember the ssh flags while creating one, this tool might be able to help you out with quick creation of any type of tunnel redirects you want.

Reverse SSH Tunneling, Bypassing Firewalls and NAT

Sometimes we want to connect to a machine using SSH but can't because it is behind some firewall or NAT router. This is a common situation when you want to connect to office computers which are usually behind a firewall or NAT router, from an outside computer. Reverse SSH tunnelling is a way to  do so. In this article we will set up a Reverse SSH tunnel.

Syndicate content