Tag Info

New answers tagged

0

I define this function inside my .bashrc to retrieve the public ip and dns: export PUBLIC_DNS=`curl http://169.254.169.254/latest/meta-data/public-hostname 2>/dev/null` export PUBLIC_IP=`curl http://169.254.169.254/latest/meta-data/public-ipv4 2>/dev/null` function get-pub() { if [ $# -ne 1 ]; then echo "Invalid number of arguments" return ...


0

You may use VSFTP instead of SFTP, in VSFTP you can customize your root dir without any change in the /etc/passwd. If you modified in the passwd file, it will also affect when login. If you got permission denied when change your home dir to /, you need to check the permission of / first. Make sure others have read permission like below: # ls -ld / ...



Top 50 recent answers are included