Tag Archives: ssh

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 , , , , , , , , | 2 Comments

Multi-hop SSH Connection

The case is as follows: You have a server, let’s name it “server2” that you need to SSH to, but unfortunately this server is not directly accessible, as you can SSH to it only through another server, let’s call it … Continue reading

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

How to connect to a VM hosted on QEMU remotely using virt-viewer

I couldn’t find comprehensive articles about this, so I decided to write one myself. In brief, here is a sample command: virt-viewer –connect qemu+ssh://aamr@hobba/system winVM Where: virt-viewer: is the command itself –connect: is obviously the parameter telling the command to … Continue reading

Posted in Linux, Mint, Ubuntu, Virtualization | Tagged , , , , , , | 1 Comment

Password-less SSH Login to Ubuntu Server

On the client: ========================================================================================= socrat@socrat-laptop ~/.ssh $ ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/socrat/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/socrat/.ssh/id_rsa. Your … Continue reading

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