Windows

My custom putty settings

This is a quick note of my custom putty settings in Windows Category: Session Connection type: SSH Category: Window Lines of scrollback: 20000 Category: Window > Appearance Font: Lucida Console, 9-point Font quality: ClearType Gap between text and window edge: 3 Category: Window > Translation Character set: UTF-8 Handling of line drawing characters: Unicode Category: […]

Read More
Linux

Use ssh on multiple servers simultaneous

If you have many servers to manage and want to perform the same tasks on each of the machine every day, then you should look at the package named clusterssh. Install the clusterssh package apt-get install clusterssh Perform the same command on the three servers server1 server2 and server3 cssh server1 server2 server3 This opens […]

Read More
Scripting

SFTP in batch mode

This post describes how you use sftp in batch mode. If you don’t want to type in your password read my SSH without a password post.Create a file named myCommands.sftp that contains the commands you want to run. My file looks like this # Change to your desired directory locallylcd /data/Hattori# Change to the desired […]

Read More
Network

SSH Without a Password

The following steps can be used to ssh from one system to another without specifying a password. Notes: The system from which the ssh session is started via the ssh command is the client. The system that the ssh session connects to is the server. These steps seem to work on systems running OpenSSH. The […]

Read More
Linux

Limit ssh access by MAC-address using iptables

This is a simple iptables rule to allow ssh access to a specific MAC-address iptables -A INPUT -p tcp –destination-port 22 -m mac –mac-source XX:XX:XX:XX:XX:XX -j ACCEPT This is a nice rule to allow only your laptop ssh access on your servers no matter what IP-address you may have while you are on the road. […]

Read More