Ubuntu 18.04 reenable SSH password prompt with git
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
1
down vote
favorite
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.
ssh password git
 |Â
show 1 more comment
up vote
1
down vote
favorite
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.
ssh password git
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
 |Â
show 1 more comment
up vote
1
down vote
favorite
up vote
1
down vote
favorite
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.
ssh password git
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.
ssh password git
edited Jun 11 at 16:57
![](https://i.stack.imgur.com/eVuAv.png?s=32&g=1)
![](https://i.stack.imgur.com/eVuAv.png?s=32&g=1)
wjandrea
7,00542054
7,00542054
asked Jun 11 at 8:00
![](https://i.stack.imgur.com/Ktlfr.png?s=32&g=1)
![](https://i.stack.imgur.com/Ktlfr.png?s=32&g=1)
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
 |Â
show 1 more comment
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
 |Â
show 1 more comment
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.
I tried that, but it did not work out.
â Adam Payne
Jun 13 at 7:18
add a comment |Â
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.
I tried that, but it did not work out.
â Adam Payne
Jun 13 at 7:18
add a comment |Â
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.
I tried that, but it did not work out.
â Adam Payne
Jun 13 at 7:18
add a comment |Â
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.
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.
answered Jun 11 at 19:12
![](https://i.stack.imgur.com/33gTl.jpg?s=32&g=1)
![](https://i.stack.imgur.com/33gTl.jpg?s=32&g=1)
Sebastian Stark
4,593838
4,593838
I tried that, but it did not work out.
â Adam Payne
Jun 13 at 7:18
add a comment |Â
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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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
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