Tag Archives: ssh

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

Integrating SSH PKI with Active Directory using PBIS-Open on Ubuntu 16.04

Long Article Warning! You can skip all this and go directly to the script at the end. This resolves the dilemma of managing SSH public keys on servers that are integrated with Active Directory using PBIS-Open, it allows you to … Continue reading

Posted in Linux | Tagged , , , , , , , , | 5 Comments