2 months, 3 weeks ago adminKeymaster
I write the following command :
#!/bin/bash echo "Connecting to Server......."; # ssh pass is third party first install it by sudo apt-get install sshpass sshpass -p "xxxxxxxx" ssh -o StrictHostKeyChecking=no firstname.lastname@example.org -p 22 <<EOF cd /home/same/public_html/ ls EOF
Everything working well but a line shows and the text come
Pseudo-terminal will not be allocated because stdin is not a terminal.
Pseudo-terminal will not be allocated because stdin is not a terminal. Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.15.0-47-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Mon Apr 29 20:22:09 UTC 2019 System load: 0.0 Processes: 149 Usage of /: 16.3% of 78.76GB Users logged in: 1 Memory usage: 42% IP address for eth0: 188.8.131.52 Swap usage: 0% IP address for eth1: 10.10.2.105 * Ubuntu's Kubernetes 1.14 distributions can bypass Docker and use containerd directly, see https://bit.ly/ubuntu-containerd or try it now with snap install microk8s --classic * Canonical Livepatch is available for installation. - Reduce system reboots and improve kernel security. Activate at: https://ubuntu.com/livepatch 69 packages can be updated. 35 updates are security updates. No mail. README.md application application.json assets fonts index.php phpinfo.php
ssh -t -t(or
ssh -ttfor short) to force pseudo-tty allocation even if stdin isn’t a terminal.
From ssh man page:
-T Disable pseudo-tty allocation. -t Force pseudo-tty allocation. This can be used to execute arbitrary screen-based programs on a remote machine, which can be very useful, e.g. when implementing menu services. Multiple -t options force tty allocation, even if ssh has no local tty.
You must be logged in to reply to this topic.