Connect to AWS with ssh

Generate .pem key on AWS If You use linux, use: ssh -i exportedkey.pem user@aws-host.amazon.com If You use windows, You’ ll have to use puttygen to load and export .pem to private key

What is my public IP – linux from CLI

As seen on garron.me wget -> wget -q -O – checkip.dyndns.org|sed -e ‘s/.*Current IP Address: //’ -e ‘s/<.*$//’ curl -> curl -s checkip.dyndns.org|sed -e ‘s/.*Current IP Address: //’ -e ‘s/<.*$//’ curl -> curl ifconfig.me lynx -> lynx -dump ifconfig.me | grep ‘IP Address’

Stop using “reload in”

Start using revert. Configure archive archive log config hidekeys path <flash|disk0>:Archives maximum 8 write-memory time-period 525600  Use configure terminal revert timer <X> Wait for <X> minutes for configuration to revert or use configure confirm for successfull implementation source, cisco documentation

Debian and grub2 password reset

In grub boot screen type “e” for edit, and search for line starting with linux – add “init=/bin/bash” at the end linux /boot/vmlinuz-version root=UUID=hex ro quite init=/bin/bash Press CTRL+X to boot and execute following: mount -o remount,rw / enter “passwd” to change root password (or passwd username) execute “sync” and make reboot