August 16

Linux: Starting SSH on boot Kali 2.x – autostart SSH

SSH won’t start at boot on Kali 2.0?

Don’t worry, it’s because Kali 2.x is based on Debian 8, as opposed to Kali 1.x being based on Debian 7.

Kali 1.x uses init/update-rc.d;
For Kali 1.x, the command is

update-rc.d ssh enable

Kali 2.x uses systemd/systemctl
For Kali 2.x, the command is

systemctl enable ssh.service

By: Security Jedi, S. Chaudhary
Modified by: Timothy Conrad

Category: Linux | Comments Off on Linux: Starting SSH on boot Kali 2.x – autostart SSH
June 26

Linux: SSH port forward basics

Example if you want to VNC to a server on your network.

ssh:
ssh -L 17552:192.168.1.22:5901 [email protected] -p 22

ssh -L localport-you-will-direct-your-program-at:internal-vncserver-ip:port-of-servers-service-you-are-connecting-to-through-the-tunnel ssh-username@yourinternetfacing-servers-ip -p opened-port-of-the-public-facing-ssh-server

vncviewer:
localhost:17552

By: Timothy Conrad

Category: Linux | Comments Off on Linux: SSH port forward basics
June 23

Linux: cp all files and subdirectories from one folder to another folder

You can copy the content of a folder /source to another existing folder /dest with the command

cp -a /source/. /dest/

The -a option is an improved recursive option, that preserve all file attributes, and also preserve symlinks.

The . at end of the source path is a specific cp syntax that allow to copy all files and folders, included hidden ones.

By: Enzotib

Category: Linux | Comments Off on Linux: cp all files and subdirectories from one folder to another folder
June 20

Linux: The sftp nuance of switching ports

I like command like consistency, ssh and sftp have some variations.
One key one is port switching.
Here is the difference:

sftp -o Port=[port] [user]@[server]

ssh [user]@[server] -p [port]

Category: Linux | Comments Off on Linux: The sftp nuance of switching ports
June 20

Linux: samba command line options for remote connectivity

Nautalus:
smb://<servername>/<sharename>/

Terminal:
For sftp style connectivity:
smb://<servername>/<sharename>/

Mount a remote samba drive to your locally created mount directory:
mount -t smbfs -o username=<username> //<servername>/<sharename> /mnt/point/

Category: Linux | Comments Off on Linux: samba command line options for remote connectivity