Tag Archives: ssh

What to do when an SSH session hangs because of a network problem

It’s a very basic post, yet still useful! Sometimes when you disconnect from a network or VPN or have any network connectivity problem in general that affects an established SSH connection to any of your servers, the terminal hangs for … Continue reading

Posted in Linux | Tagged , , | Leave a comment

Copy with rsync over ssh

From remote server to local one: rsync -avzhe ssh remote_user@REMOTE_IP:/remote_folder_or_file /local_destination_folder_or_file From local server to remote one: rsync -avzhe ssh local_folder_or_file remote_user@REMOTE_IP:/remote_destination_folder_or_file That’s it, Enjoy! Sources: Rsync (Remote Sync): 10 Practical Examples of Rsync Command in Linux

Posted in Linux | Tagged , , | Leave a comment

How to use hydra to test/crack ssh credentials for a list of servers

To install hydra on Ubuntu: sudo apt install hydra Simply, to start our test/attack, we have a list of usernames, list of passwords and list of servers: hydra -L users.txt -P passes.txt -u -M hosts.txt ssh -o Report.txt Where: users.txt … Continue reading

Posted in Linux | Tagged , , , | Leave a comment

Create SSH profiles for your frequent connections on Ubuntu 18.04 using ssh_config

This is very useful if you connect to tons of servers via ssh and you need to keep record of them as profiles. Edit/Create a file .ssh/config Add entries in this manner: Host blabla User blablabla # or domain\blablabla if … Continue reading

Posted in Linux | Tagged , , , , , | Leave a comment

How to mount SSHFS from Ubuntu

A more secure alternative to NFS or SAMBA would be to use SSHFS. Besides encrypting the data stream, it has many benefits, among which: Firewall-friendly, since it uses standard SSH ports Supports PKI To mount an SSH filesystem from Ubuntu, … Continue reading

Posted in Linux | Tagged , , , , , | 1 Comment