cd .. command does not work with gcloud compute ssh while other basic commands (such as pwd) do work. Why? [duplicate]
问题 This question already has answers here : Multiple commands on remote machine using shell script (3 answers) Why would SSH commands through Putty work differently to those via PHP's phpseclib? (1 answer) Paramiko: calling “cd” command with exec_command does nothing (3 answers) Closed 2 years ago . I have a running instance my-instance running on google-cloud. I run the following code on my local machine: gcloud compute ssh my-instance --command 'pwd' gcloud compute ssh my-instance --command