gcloud compute ssh error: Pseudo-terminal will not be allocated because stdin is not a terminal Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Pseudo-terminal will not be allocated because stdin is not a terminalPseudo-terminal will not be allocated because stdin is not a terminalTrying to SSH into an Amazon Ec2 instance - permission errorssh “permissions are too open” errorgnome-keyring interfering with gcloud ssh & copy-filesgcloud compute ssh failsChange service account on google dataprocAuthentic Jenkins to Google Cloud Platform KubernetesError while activating the gcloud service account from command line“gcloud auth activate-service-account” and “gcloud source repos clone” errorjenkins pipeline using gcloud is not working
Does the Weapon Master feat grant you a fighting style?
How much damage would a cupful of neutron star matter do to the Earth?
What is the topology associated with the algebras for the ultrafilter monad?
Can anything be seen from the center of the Boötes void? How dark would it be?
How to write this math term? with cases it isn't working
Did Krishna say in Bhagavad Gita "I am in every living being"
How could we fake a moon landing now?
How fail-safe is nr as stop bytes?
AppleTVs create a chatty alternate WiFi network
What would you call this weird metallic apparatus that allows you to lift people?
Drawing without replacement: why is the order of draw irrelevant?
How would a mousetrap for use in space work?
Dating a Former Employee
Can the Great Weapon Master feat's damage bonus and accuracy penalty apply to attacks from the Spiritual Weapon spell?
A term for a woman complaining about things/begging in a cute/childish way
Maximum summed subsequences with non-adjacent items
Is it possible for SQL statements to execute concurrently within a single session in SQL Server?
Is it ethical to give a final exam after the professor has quit before teaching the remaining chapters of the course?
Selecting user stories during sprint planning
How does the math work when buying airline miles?
Using audio cues to encourage good posture
Do I really need to have a message in a novel to appeal to readers?
Is there hard evidence that the grant peer review system performs significantly better than random?
Is grep documentation about ignoring case wrong, since it doesn't ignore case in filenames?
gcloud compute ssh error: Pseudo-terminal will not be allocated because stdin is not a terminal
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!Pseudo-terminal will not be allocated because stdin is not a terminalPseudo-terminal will not be allocated because stdin is not a terminalTrying to SSH into an Amazon Ec2 instance - permission errorssh “permissions are too open” errorgnome-keyring interfering with gcloud ssh & copy-filesgcloud compute ssh failsChange service account on google dataprocAuthentic Jenkins to Google Cloud Platform KubernetesError while activating the gcloud service account from command line“gcloud auth activate-service-account” and “gcloud source repos clone” errorjenkins pipeline using gcloud is not working
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I want to connect to two VMs across different projects from GCP.
I created job in jenkins to connect VMs. Steps I followed:
Activated service account
gcloud auth activate-service-account --key-file CRED_FILE --project ProjectID"
Connected to cluster from another project
gcloud container clusters get-credentials clusterName --zone Zone
Add ssh configuration
gcloud compute config-ssh
Connect to VM via ssh
ssh example-instance.us-central1-a.MY-PROJECT
Everything works fine untill step 3.
After executing step 4 console gives me error as : Pseudo-terminal will not be allocated because stdin is not a terminal.
Please suggest solution.
Note: I also tried options -tt and -T, but not solved problem.
Refs:
https://cloud.google.com/sdk/gcloud/reference/auth/activate-service-account
https://cloud.google.com/sdk/gcloud/reference/container/clusters/get-credentials
https://cloud.google.com/sdk/gcloud/reference/compute/config-ssh
ssh google-cloud-platform jenkins-pipeline gcloud ssh-config
|
show 2 more comments
I want to connect to two VMs across different projects from GCP.
I created job in jenkins to connect VMs. Steps I followed:
Activated service account
gcloud auth activate-service-account --key-file CRED_FILE --project ProjectID"
Connected to cluster from another project
gcloud container clusters get-credentials clusterName --zone Zone
Add ssh configuration
gcloud compute config-ssh
Connect to VM via ssh
ssh example-instance.us-central1-a.MY-PROJECT
Everything works fine untill step 3.
After executing step 4 console gives me error as : Pseudo-terminal will not be allocated because stdin is not a terminal.
Please suggest solution.
Note: I also tried options -tt and -T, but not solved problem.
Refs:
https://cloud.google.com/sdk/gcloud/reference/auth/activate-service-account
https://cloud.google.com/sdk/gcloud/reference/container/clusters/get-credentials
https://cloud.google.com/sdk/gcloud/reference/compute/config-ssh
ssh google-cloud-platform jenkins-pipeline gcloud ssh-config
Possibly already answered here. Suggestion there is to usessh -tt
to force pseudo-tty allocation even if stdin isn't a terminal.
– Jofre
Mar 22 at 11:19
Possible duplicate of Pseudo-terminal will not be allocated because stdin is not a terminal
– Jofre
Mar 22 at 11:20
I also tried options -tt and -T, but not solved problem.
– Pankaj Shinde
Mar 22 at 11:27
Removed duplicate flag (you can say in your question the solutions you already tried). Have you tried using the gcloud command directly? e.g.gcloud compute ssh INSTANCE --ssh-lag=-tt
– Jofre
Mar 22 at 11:32
But I recall some scripts where I had some similar issue (although possibly not the same issue), and I just usedgcloud compute ssh INSTANCE </dev/tty
for it to work.
– Jofre
Mar 22 at 11:33
|
show 2 more comments
I want to connect to two VMs across different projects from GCP.
I created job in jenkins to connect VMs. Steps I followed:
Activated service account
gcloud auth activate-service-account --key-file CRED_FILE --project ProjectID"
Connected to cluster from another project
gcloud container clusters get-credentials clusterName --zone Zone
Add ssh configuration
gcloud compute config-ssh
Connect to VM via ssh
ssh example-instance.us-central1-a.MY-PROJECT
Everything works fine untill step 3.
After executing step 4 console gives me error as : Pseudo-terminal will not be allocated because stdin is not a terminal.
Please suggest solution.
Note: I also tried options -tt and -T, but not solved problem.
Refs:
https://cloud.google.com/sdk/gcloud/reference/auth/activate-service-account
https://cloud.google.com/sdk/gcloud/reference/container/clusters/get-credentials
https://cloud.google.com/sdk/gcloud/reference/compute/config-ssh
ssh google-cloud-platform jenkins-pipeline gcloud ssh-config
I want to connect to two VMs across different projects from GCP.
I created job in jenkins to connect VMs. Steps I followed:
Activated service account
gcloud auth activate-service-account --key-file CRED_FILE --project ProjectID"
Connected to cluster from another project
gcloud container clusters get-credentials clusterName --zone Zone
Add ssh configuration
gcloud compute config-ssh
Connect to VM via ssh
ssh example-instance.us-central1-a.MY-PROJECT
Everything works fine untill step 3.
After executing step 4 console gives me error as : Pseudo-terminal will not be allocated because stdin is not a terminal.
Please suggest solution.
Note: I also tried options -tt and -T, but not solved problem.
Refs:
https://cloud.google.com/sdk/gcloud/reference/auth/activate-service-account
https://cloud.google.com/sdk/gcloud/reference/container/clusters/get-credentials
https://cloud.google.com/sdk/gcloud/reference/compute/config-ssh
ssh google-cloud-platform jenkins-pipeline gcloud ssh-config
ssh google-cloud-platform jenkins-pipeline gcloud ssh-config
edited Mar 23 at 12:15
jww
54.5k42240520
54.5k42240520
asked Mar 22 at 10:11
Pankaj ShindePankaj Shinde
608920
608920
Possibly already answered here. Suggestion there is to usessh -tt
to force pseudo-tty allocation even if stdin isn't a terminal.
– Jofre
Mar 22 at 11:19
Possible duplicate of Pseudo-terminal will not be allocated because stdin is not a terminal
– Jofre
Mar 22 at 11:20
I also tried options -tt and -T, but not solved problem.
– Pankaj Shinde
Mar 22 at 11:27
Removed duplicate flag (you can say in your question the solutions you already tried). Have you tried using the gcloud command directly? e.g.gcloud compute ssh INSTANCE --ssh-lag=-tt
– Jofre
Mar 22 at 11:32
But I recall some scripts where I had some similar issue (although possibly not the same issue), and I just usedgcloud compute ssh INSTANCE </dev/tty
for it to work.
– Jofre
Mar 22 at 11:33
|
show 2 more comments
Possibly already answered here. Suggestion there is to usessh -tt
to force pseudo-tty allocation even if stdin isn't a terminal.
– Jofre
Mar 22 at 11:19
Possible duplicate of Pseudo-terminal will not be allocated because stdin is not a terminal
– Jofre
Mar 22 at 11:20
I also tried options -tt and -T, but not solved problem.
– Pankaj Shinde
Mar 22 at 11:27
Removed duplicate flag (you can say in your question the solutions you already tried). Have you tried using the gcloud command directly? e.g.gcloud compute ssh INSTANCE --ssh-lag=-tt
– Jofre
Mar 22 at 11:32
But I recall some scripts where I had some similar issue (although possibly not the same issue), and I just usedgcloud compute ssh INSTANCE </dev/tty
for it to work.
– Jofre
Mar 22 at 11:33
Possibly already answered here. Suggestion there is to use
ssh -tt
to force pseudo-tty allocation even if stdin isn't a terminal.– Jofre
Mar 22 at 11:19
Possibly already answered here. Suggestion there is to use
ssh -tt
to force pseudo-tty allocation even if stdin isn't a terminal.– Jofre
Mar 22 at 11:19
Possible duplicate of Pseudo-terminal will not be allocated because stdin is not a terminal
– Jofre
Mar 22 at 11:20
Possible duplicate of Pseudo-terminal will not be allocated because stdin is not a terminal
– Jofre
Mar 22 at 11:20
I also tried options -tt and -T, but not solved problem.
– Pankaj Shinde
Mar 22 at 11:27
I also tried options -tt and -T, but not solved problem.
– Pankaj Shinde
Mar 22 at 11:27
Removed duplicate flag (you can say in your question the solutions you already tried). Have you tried using the gcloud command directly? e.g.
gcloud compute ssh INSTANCE --ssh-lag=-tt
– Jofre
Mar 22 at 11:32
Removed duplicate flag (you can say in your question the solutions you already tried). Have you tried using the gcloud command directly? e.g.
gcloud compute ssh INSTANCE --ssh-lag=-tt
– Jofre
Mar 22 at 11:32
But I recall some scripts where I had some similar issue (although possibly not the same issue), and I just used
gcloud compute ssh INSTANCE </dev/tty
for it to work.– Jofre
Mar 22 at 11:33
But I recall some scripts where I had some similar issue (although possibly not the same issue), and I just used
gcloud compute ssh INSTANCE </dev/tty
for it to work.– Jofre
Mar 22 at 11:33
|
show 2 more comments
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55297296%2fgcloud-compute-ssh-error-pseudo-terminal-will-not-be-allocated-because-stdin-is%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55297296%2fgcloud-compute-ssh-error-pseudo-terminal-will-not-be-allocated-because-stdin-is%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Possibly already answered here. Suggestion there is to use
ssh -tt
to force pseudo-tty allocation even if stdin isn't a terminal.– Jofre
Mar 22 at 11:19
Possible duplicate of Pseudo-terminal will not be allocated because stdin is not a terminal
– Jofre
Mar 22 at 11:20
I also tried options -tt and -T, but not solved problem.
– Pankaj Shinde
Mar 22 at 11:27
Removed duplicate flag (you can say in your question the solutions you already tried). Have you tried using the gcloud command directly? e.g.
gcloud compute ssh INSTANCE --ssh-lag=-tt
– Jofre
Mar 22 at 11:32
But I recall some scripts where I had some similar issue (although possibly not the same issue), and I just used
gcloud compute ssh INSTANCE </dev/tty
for it to work.– Jofre
Mar 22 at 11:33