Add this function screen in ~/.bashrc to avoid error as below: Cannot open your terminal '/dev/pts/0' - please check. function screen() { /usr/bin/script -q -c "/usr/bin/screen ${*}" /dev/null }