Blog Archives

Remote Connections to mysql

By default remote access to the MySQL database server is disabled for security reasons. The standard configuration of MySQL is intended to be as fast as possible, so encrypted connections are not used by default. If we want to allow remote

Posted in Linux, MySQL, Security

SSH fingerprints

Whenever we use SSH to connect to a new host, we usually see the following prompt asking us to confirm the fingerprint: $ ssh user1@somedomain.com The authenticity of host ‘somedomain.com’ (99.99.99.101) can’t be establised ECDSA key fingerprint is c8:2c:22:6d:13:…..29:b4:86:8d:13. Are

Tagged with: ,
Posted in Linux, Security

Network troubleshooting

Here are some basic commands to trouble shoot networking issues: ping ping <hostname> send ICMP ECHO_REQUEST to network hosts ping uses ICMP protocol (ports are only for TCP/UDP) Check to see if a host is reachable from our computer nmap

Tagged with: ,
Posted in Linux, Networking

Fabric (SSH & passwords)

Option 1 – provide password with -p flag fab -H hostname -p password123 … Downside: password will show up in process listing Downside: password will show up in command history Option 2 – get prompted for password fab -I Initial

Posted in Fabric, Linux, Python, Security

Users & Groups

Create User (usermod): Note: useradd cannot be used to modify an existing user useradd <username>  -c comment, any text, usually user’s name  -d home-directory  -g primary group; must exist, if not specified a default group is created  -G group-list (secondary;

Posted in Linux

Zip commands

zip files zip <archive.zip> <files-to-compress> — unzip archive.zip unzip archive.zip <file.jpg> -t test file -l list files from archive -j do not make directories tar files tar xvf archive.tar Z (compressed) files tar -xZf archive.tar.gz tar -C /tmp/test archive.tar.gz #extra

Tagged with:
Posted in Linux

Linux Notes

Stumbled across these useful commands today: Display Environment variables set   # prints environment variables, includes stuff like: BASH_ARGC=() printenv #prints environment variables, seems to be a much shorter list env # prints environment variables, seems to be a much shorter

Posted in Linux