Questions about using ssh and how it relates to users

Oscalation

I don't really understand how SSH works.

  1. When I generate an ssh key on a machine, does this generate a key for the 'entire' machine and all of its users, or just the user i generated the key from? ssh-keygen

  2. When you generate an ssh key, does this automatically set ssh to require the use of this key to connect to that machine with that user?

  3. I am attempting to use VisualHostKey. Is there a way you can enable it from the CLI without editing /etc/ssh/ssh_config. For example: ssh -o VisualHostKey=yes doesn't seem to work

I generated an ssh key on a CentOS test machine in a vm; however, when checking etc/ssh/ I don't see a key for the username I was using at the time, but I do see something for ssh_host_ecdsa and ssh_host_ed25555; what are those?

Jakuje

Can you point me to a good resource to better understand ssh (other than manual pages or pinfo)

Wikipedia, RFCs

When I generate an ssh key on a machine, does this generate a key for the 'entire' machine and all of its users, or just the user i generated the key from? ssh-keygen

The key is file just as each other. It depends only on you where you place that file and which permissions you will set to it. But it is good practice to leave the file for you only. Such as you do with your password, PIN or keys to your home.

When you generate an ssh key, does this automatically set ssh to require the use of this key to connect to that machine with that user?

No

I am attempting to use VisualHostKey. Is there a way you can enable it from the CLI without editing /etc/ssh/ssh_config. For example: ssh -o VisualHostKey=yes doesnt seem to work

ssh -o VisualHostKey=yes host

works. Also you can create your per-user config file in ~/.ssh/config, where you can store

VisualHostKey yes

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Questions about using Ninject

From Dev

Questions about using Ninject

From Dev

How can the order of execution in the shell as it relates to redirection be upset about 1 time out of a 1000 on my system?

From Dev

Port forwarding using SSH with different users: how to debug connection problems?

From Dev

Port forwarding using SSH with different users: how to debug connection problems?

From Dev

Questions about using Futures and Completers

From Dev

several questions about using vespa

From Dev

Questions about using regular expressions

From Dev

Practical security questions for users using shared computers

From Dev

Questions about using Regex Search & Replace in gedit

From Dev

Some questions about using MongoDB java driver

From Dev

Couple of questions about composing query using PDO

From Dev

Few questions about using a proxy with a vpn

From Dev

Questions about using Regex Search & Replace in gedit

From Dev

how to get a list of questions posted by followed users

From Dev

How base package version relates to GHC version?

From Dev

Restlet how to build relates HATEAOS links properly?

From Dev

how to hit total 1000 ssh commands using jmeter by 1000 users (1command/user) using 1 ssh connection

From Dev

A few questions about how UITableView reuses cells

From Dev

Questions about how libraries work in C

From Dev

Questions about how libraries work in C

From Dev

Questions about how to call Nodes work in Java

From Dev

How to go about storing users data in Json

From Dev

How to limit a users SSH access to certain folders

From Dev

How to limit a users SSH access to certain folders

From Dev

How to allow both root and restricted users in SSH?

From Dev

How to disable root privilege for SSH'ed users?

From Dev

How to use ssh_config with matches for users

From Dev

How to have two users with ssh access

Related Related

  1. 1

    Questions about using Ninject

  2. 2

    Questions about using Ninject

  3. 3

    How can the order of execution in the shell as it relates to redirection be upset about 1 time out of a 1000 on my system?

  4. 4

    Port forwarding using SSH with different users: how to debug connection problems?

  5. 5

    Port forwarding using SSH with different users: how to debug connection problems?

  6. 6

    Questions about using Futures and Completers

  7. 7

    several questions about using vespa

  8. 8

    Questions about using regular expressions

  9. 9

    Practical security questions for users using shared computers

  10. 10

    Questions about using Regex Search & Replace in gedit

  11. 11

    Some questions about using MongoDB java driver

  12. 12

    Couple of questions about composing query using PDO

  13. 13

    Few questions about using a proxy with a vpn

  14. 14

    Questions about using Regex Search & Replace in gedit

  15. 15

    how to get a list of questions posted by followed users

  16. 16

    How base package version relates to GHC version?

  17. 17

    Restlet how to build relates HATEAOS links properly?

  18. 18

    how to hit total 1000 ssh commands using jmeter by 1000 users (1command/user) using 1 ssh connection

  19. 19

    A few questions about how UITableView reuses cells

  20. 20

    Questions about how libraries work in C

  21. 21

    Questions about how libraries work in C

  22. 22

    Questions about how to call Nodes work in Java

  23. 23

    How to go about storing users data in Json

  24. 24

    How to limit a users SSH access to certain folders

  25. 25

    How to limit a users SSH access to certain folders

  26. 26

    How to allow both root and restricted users in SSH?

  27. 27

    How to disable root privilege for SSH'ed users?

  28. 28

    How to use ssh_config with matches for users

  29. 29

    How to have two users with ssh access

HotTag

Archive