Connect to AWS with ssh

Generate .pem key on AWS If You use linux, use: ssh -i exportedkey.pem 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 wget -> wget -q -O –|sed -e ‘s/.*Current IP Address: //’ -e ‘s/<.*$//’ curl -> curl -s|sed -e ‘s/.*Current IP Address: //’ -e ‘s/<.*$//’ curl -> curl lynx -> lynx -dump | 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