Ubuntu 18.04 reenable SSH password prompt with git

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite
1












I'm using Ubuntu 18.04 where I have set up an SSH key to be used with Git. On one of the first prompts when I used the key I checked the option to stop asking me for the SSH password when my user is logged in. I want to revert on that choice so that I will be again prompted for the SSH password.







share|improve this question





















  • I think this is what you're asking: SSH: Switch from public key authentication to password - Server Fault
    – wjandrea
    Jun 11 at 16:58










  • I don't see what this has to do with git though. Do you mean GitHub?
    – wjandrea
    Jun 11 at 16:58










  • The remote git server is hosted with Bitbucket, not GitHub.
    – Adam Payne
    Jun 13 at 7:14










  • Are you sure that your private key has a password set at all?
    – Sebastian Stark
    Jun 13 at 18:10










  • Yes, it has a password set.
    – Adam Payne
    Jun 14 at 7:48














up vote
1
down vote

favorite
1












I'm using Ubuntu 18.04 where I have set up an SSH key to be used with Git. On one of the first prompts when I used the key I checked the option to stop asking me for the SSH password when my user is logged in. I want to revert on that choice so that I will be again prompted for the SSH password.







share|improve this question





















  • I think this is what you're asking: SSH: Switch from public key authentication to password - Server Fault
    – wjandrea
    Jun 11 at 16:58










  • I don't see what this has to do with git though. Do you mean GitHub?
    – wjandrea
    Jun 11 at 16:58










  • The remote git server is hosted with Bitbucket, not GitHub.
    – Adam Payne
    Jun 13 at 7:14










  • Are you sure that your private key has a password set at all?
    – Sebastian Stark
    Jun 13 at 18:10










  • Yes, it has a password set.
    – Adam Payne
    Jun 14 at 7:48












up vote
1
down vote

favorite
1









up vote
1
down vote

favorite
1






1





I'm using Ubuntu 18.04 where I have set up an SSH key to be used with Git. On one of the first prompts when I used the key I checked the option to stop asking me for the SSH password when my user is logged in. I want to revert on that choice so that I will be again prompted for the SSH password.







share|improve this question













I'm using Ubuntu 18.04 where I have set up an SSH key to be used with Git. On one of the first prompts when I used the key I checked the option to stop asking me for the SSH password when my user is logged in. I want to revert on that choice so that I will be again prompted for the SSH password.









share|improve this question












share|improve this question




share|improve this question








edited Jun 11 at 16:57









wjandrea

7,00542054




7,00542054









asked Jun 11 at 8:00









Adam Payne

61




61











  • I think this is what you're asking: SSH: Switch from public key authentication to password - Server Fault
    – wjandrea
    Jun 11 at 16:58










  • I don't see what this has to do with git though. Do you mean GitHub?
    – wjandrea
    Jun 11 at 16:58










  • The remote git server is hosted with Bitbucket, not GitHub.
    – Adam Payne
    Jun 13 at 7:14










  • Are you sure that your private key has a password set at all?
    – Sebastian Stark
    Jun 13 at 18:10










  • Yes, it has a password set.
    – Adam Payne
    Jun 14 at 7:48
















  • I think this is what you're asking: SSH: Switch from public key authentication to password - Server Fault
    – wjandrea
    Jun 11 at 16:58










  • I don't see what this has to do with git though. Do you mean GitHub?
    – wjandrea
    Jun 11 at 16:58










  • The remote git server is hosted with Bitbucket, not GitHub.
    – Adam Payne
    Jun 13 at 7:14










  • Are you sure that your private key has a password set at all?
    – Sebastian Stark
    Jun 13 at 18:10










  • Yes, it has a password set.
    – Adam Payne
    Jun 14 at 7:48















I think this is what you're asking: SSH: Switch from public key authentication to password - Server Fault
– wjandrea
Jun 11 at 16:58




I think this is what you're asking: SSH: Switch from public key authentication to password - Server Fault
– wjandrea
Jun 11 at 16:58












I don't see what this has to do with git though. Do you mean GitHub?
– wjandrea
Jun 11 at 16:58




I don't see what this has to do with git though. Do you mean GitHub?
– wjandrea
Jun 11 at 16:58












The remote git server is hosted with Bitbucket, not GitHub.
– Adam Payne
Jun 13 at 7:14




The remote git server is hosted with Bitbucket, not GitHub.
– Adam Payne
Jun 13 at 7:14












Are you sure that your private key has a password set at all?
– Sebastian Stark
Jun 13 at 18:10




Are you sure that your private key has a password set at all?
– Sebastian Stark
Jun 13 at 18:10












Yes, it has a password set.
– Adam Payne
Jun 14 at 7:48




Yes, it has a password set.
– Adam Payne
Jun 14 at 7:48










1 Answer
1






active

oldest

votes

















up vote
0
down vote













In case git is using ssh-agent (I am guessing a bit here), you would have to issue the command



ssh-add -D


to make it forget cached credentials for all your private keys. Those credentials would have been forgotten after a reboot of the system as well.






share|improve this answer





















  • I tried that, but it did not work out.
    – Adam Payne
    Jun 13 at 7:18










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
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',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1045528%2fubuntu-18-04-reenable-ssh-password-prompt-with-git%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













In case git is using ssh-agent (I am guessing a bit here), you would have to issue the command



ssh-add -D


to make it forget cached credentials for all your private keys. Those credentials would have been forgotten after a reboot of the system as well.






share|improve this answer





















  • I tried that, but it did not work out.
    – Adam Payne
    Jun 13 at 7:18














up vote
0
down vote













In case git is using ssh-agent (I am guessing a bit here), you would have to issue the command



ssh-add -D


to make it forget cached credentials for all your private keys. Those credentials would have been forgotten after a reboot of the system as well.






share|improve this answer





















  • I tried that, but it did not work out.
    – Adam Payne
    Jun 13 at 7:18












up vote
0
down vote










up vote
0
down vote









In case git is using ssh-agent (I am guessing a bit here), you would have to issue the command



ssh-add -D


to make it forget cached credentials for all your private keys. Those credentials would have been forgotten after a reboot of the system as well.






share|improve this answer













In case git is using ssh-agent (I am guessing a bit here), you would have to issue the command



ssh-add -D


to make it forget cached credentials for all your private keys. Those credentials would have been forgotten after a reboot of the system as well.







share|improve this answer













share|improve this answer



share|improve this answer











answered Jun 11 at 19:12









Sebastian Stark

4,593838




4,593838











  • I tried that, but it did not work out.
    – Adam Payne
    Jun 13 at 7:18
















  • I tried that, but it did not work out.
    – Adam Payne
    Jun 13 at 7:18















I tried that, but it did not work out.
– Adam Payne
Jun 13 at 7:18




I tried that, but it did not work out.
– Adam Payne
Jun 13 at 7:18












 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1045528%2fubuntu-18-04-reenable-ssh-password-prompt-with-git%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491