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’

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

Upload files to your Cisco ASA via pscp – no password prompt

– make sure you have defined user on ASA with privilege 15– make sure you have ssh scopy enable configured– on your linux host enter pscp -pw <password> <filename> <username>@<ASA IP>:<location/filename> something like: pscp -pw THISisp4ssw0rdf anyconnectfile.pkg adminusername@ if you want to use scp with password prompt use: scp anyconnectfile.pkg adminusername@

MTU traceroute and value check

check your MTU settings with user@computer:~$ tracepath -n www.cix.hr 1: 0.099ms pmtu 1500 1: 0.425ms 1: 0.405ms 2: 1.345ms 3: 4.111ms 4: 4.327ms 5: 192.967ms 6: 6.561ms asymm 7 7: 4.719ms asymm 10 8: 6.181ms asymm 9 9: 5.390ms asymm 10 10: 4.403ms