Ssh choose no identity

rogerRJ

I have a ssh config file that has a IdentityFile entry.

So when I use ssh, this identity file is used, which is what I want. However, if I want to temporarily disable this identity entry (without disabling other entries in the ssh config file), is there a way to do it directly from the ssh command line invocation, or do I have to comment out this line in the config file every time I want to remove the default identity?

Maybe something like ssh -i /dev/null myserver, although this one doesn't work due to file permissions.

Jakuje

You can disable public key authentication on command-line, which makes the client not to use any identity defined:

ssh -o PubkeyAuthentication=no yourserver

Removing already added identities is not possible in the form how config file is made.

Collected from the Internet

Please contact debug[email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Definition of SSH identity

From Dev

choose between asp identity claims and sessions data

From Dev

How to override SSH default identity?

From Dev

How does ssh choose the correct key to use?

From Dev

How to choose to use IDENTITY_INSERT or provide one in a single statement

From Dev

how do we specify an ssh default identity?

From Dev

Detecting the remaining lifetime of an ssh-agent identity

From Dev

SSH tunnel with rsa identity without passphrase

From Dev

Automatically fill in ssh identity file password?

From Dev

SSH Agent loses identity while restart machine

From Dev

"ssh-add -d" refused to remove identity

From Dev

How to transfer the identity (SSH) of a machine to a new machine?

From Dev

why git push can not choose the right ssh key?

From Dev

why git push can not choose the right ssh key?

From Dev

"USERAUTH fail" using gradle-ssh-plugin with identity

From Dev

How to change user identity when git pushing via ssh?

From Dev

SSH without password with non-default identity file location

From Dev

SSH without password with non-default identity file location

From Dev

What does identity file type mean in SSH debug messages?

From Dev

Meaning of: Identity added: .ssh/example_rsa ((null))

From Dev

What the -I certificate_identity ssh-keygen option is for?

From Dev

Avoid SSH identity conflicts when dual booting on the same IP address

From Dev

How to change user identity when git pushing via ssh?

From Dev

Password in plain text argument for ssh -i (identity_file)

From Dev

Specify Specific Identity file when ssh'ing as certain user in ~/.ssh/config

From Dev

ssh-add command does not add my identity to ssh-agent

From Dev

Specify Specific Identity file when ssh'ing as certain user in ~/.ssh/config

From Dev

ssh-add command does not add my identity to ssh-agent

From Dev

How to use ssh-agent with multiple (valid) keys and yet choose which one to use?

Related Related

  1. 1

    Definition of SSH identity

  2. 2

    choose between asp identity claims and sessions data

  3. 3

    How to override SSH default identity?

  4. 4

    How does ssh choose the correct key to use?

  5. 5

    How to choose to use IDENTITY_INSERT or provide one in a single statement

  6. 6

    how do we specify an ssh default identity?

  7. 7

    Detecting the remaining lifetime of an ssh-agent identity

  8. 8

    SSH tunnel with rsa identity without passphrase

  9. 9

    Automatically fill in ssh identity file password?

  10. 10

    SSH Agent loses identity while restart machine

  11. 11

    "ssh-add -d" refused to remove identity

  12. 12

    How to transfer the identity (SSH) of a machine to a new machine?

  13. 13

    why git push can not choose the right ssh key?

  14. 14

    why git push can not choose the right ssh key?

  15. 15

    "USERAUTH fail" using gradle-ssh-plugin with identity

  16. 16

    How to change user identity when git pushing via ssh?

  17. 17

    SSH without password with non-default identity file location

  18. 18

    SSH without password with non-default identity file location

  19. 19

    What does identity file type mean in SSH debug messages?

  20. 20

    Meaning of: Identity added: .ssh/example_rsa ((null))

  21. 21

    What the -I certificate_identity ssh-keygen option is for?

  22. 22

    Avoid SSH identity conflicts when dual booting on the same IP address

  23. 23

    How to change user identity when git pushing via ssh?

  24. 24

    Password in plain text argument for ssh -i (identity_file)

  25. 25

    Specify Specific Identity file when ssh'ing as certain user in ~/.ssh/config

  26. 26

    ssh-add command does not add my identity to ssh-agent

  27. 27

    Specify Specific Identity file when ssh'ing as certain user in ~/.ssh/config

  28. 28

    ssh-add command does not add my identity to ssh-agent

  29. 29

    How to use ssh-agent with multiple (valid) keys and yet choose which one to use?

HotTag

Archive