Want to improve this question? Add details and clarify the problem by editing this post. Is this a security issue, if yes, why? !#/bin/bash # … read -s password # Open an encrypted device on remote server echo $password | ssh -p $port -l $user $host “/usr/bin/sudo /sbin/cryptsetup luksOpen /dev/sdb1 backup” #…. Thanks Linux >= […]