From charlesreid1

Enabling ssh server

Mars

Jupiter

OpenSSH server

apt-get install openssh-server

Now remove run levels for ssh:

update-rc.d -f ssh remove

Now load the default run level for ssh:

update-rc.d -f ssh defaults

SSH keys

Move old SSH keys for this machine.

 cd /etc/ssh/
mkdir insecure_original_default_kali_keys 
mv ssh_host_* insecure_original_default_kali_keys/

Make new SSH keys for this machine.

dpkg-reconfigure openssh-server

Enabling aptitude repositories

Following the Kali Linux page on sources.list, I modified the /etc/apt/sources.list on each Kali machine to be the following:

#

# deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot i386 LIVE/INSTALL Binary 20150312-18:43]/ kali contrib main non-free
#deb cdrom:[Debian GNU/Linux 7.0 _Kali_ - Official Snapshot i386 LIVE/INSTALL Binary 20150312-18:43]/ kali contrib main non-free

# see http://docs.kali.org/general-use/kali-linux-sources-list-repositories

deb http://http.kali.org/kali kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free

deb-src http://http.kali.org/kali kali main non-free contrib
deb-src http://security.kali.org/kali-security kali/updates main contrib non-free

deb http://repo.kali.org/kali kali-bleeding-edge main


Updating Dotfiles

This is a Rube-Goldberg-Machine of a process on Kali...

To update the dotfiles, we need to add the Github repo.

To add the Github repo, need to create a codes directory.

To create a codes directory, we need to be a non-root user.

Sooooo our first step is to become non-root.

Become Non-Root

List all users on system

Let's start by looking at what users are on the system. HOLY TOLEDO

root@mars:~# cut -d: -f1 /etc/passwd
root
daemon
bin
sys
sync
games
man
lp
mail
news
uucp
proxy
www-data
backup
list
irc
gnats
nobody
libuuid
mysql
messagebus
colord
usbmux
miredo
ntp
Debian-exim
arpwatch
avahi
beef-xss
dradis
pulse
speech-dispatcher
haldaemon
sshd
snmp
iodine
postgres
redsocks
stunnel4
statd
sslh
Debian-gdm
rtkit
saned
dnsmasq

THAT IS A LOT OF USERS

List all users logged in

But only one of those many, many users is logged in:

root@mars:~# w
 23:32:24 up 13:26,  2 users,  load average: 0.00, 0.01, 0.05
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/0    10.0.0.120       23:18    0.00s  0.16s  0.00s w

Add new user

Now we can add our new user:

root@mars:~# useradd charles

Check out our user's user id and group id:

root@mars:~# id charles
uid=1000(charles) gid=1001(charles) groups=1001(charles)

Add the user to the sudoers group:

root@mars:~# adduser charles sudo
Adding user `charles' to group `sudo' ...
Adding user charles to group sudo
Done.