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;








-1















I want to connect to two VMs across different projects from GCP.



I created job in jenkins to connect VMs. Steps I followed:




  1. Activated service account



    gcloud auth activate-service-account --key-file CRED_FILE --project ProjectID"




  2. Connected to cluster from another project



    gcloud container clusters get-credentials clusterName --zone Zone




  3. Add ssh configuration



    gcloud compute config-ssh




  4. 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











share|improve this question
























  • 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

















-1















I want to connect to two VMs across different projects from GCP.



I created job in jenkins to connect VMs. Steps I followed:




  1. Activated service account



    gcloud auth activate-service-account --key-file CRED_FILE --project ProjectID"




  2. Connected to cluster from another project



    gcloud container clusters get-credentials clusterName --zone Zone




  3. Add ssh configuration



    gcloud compute config-ssh




  4. 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











share|improve this question
























  • 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













-1












-1








-1








I want to connect to two VMs across different projects from GCP.



I created job in jenkins to connect VMs. Steps I followed:




  1. Activated service account



    gcloud auth activate-service-account --key-file CRED_FILE --project ProjectID"




  2. Connected to cluster from another project



    gcloud container clusters get-credentials clusterName --zone Zone




  3. Add ssh configuration



    gcloud compute config-ssh




  4. 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











share|improve this question
















I want to connect to two VMs across different projects from GCP.



I created job in jenkins to connect VMs. Steps I followed:




  1. Activated service account



    gcloud auth activate-service-account --key-file CRED_FILE --project ProjectID"




  2. Connected to cluster from another project



    gcloud container clusters get-credentials clusterName --zone Zone




  3. Add ssh configuration



    gcloud compute config-ssh




  4. 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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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

















  • 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
















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












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
);



);













draft saved

draft discarded


















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















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript