Re: selinux/ssh -- basic question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ok..  so there's a file that has bobs private key  that I copy to the local server  in the .ssh/ dir path..  

so anyone who logs into the local user..  where I've copied the private key/file  can access  ssh bob@1.2.3.4


did I miss something?

On Sun, Mar 22, 2020, 4:37 PM Samuel Sieb <samuel@xxxxxxxx> wrote:
On 3/22/20 1:19 PM, bruce wrote:
>    on the remote VM, I want to create a user "bob". I also want to
> modify the remote to ssh into the VM as bob, using sshkeys
>
> do I have to have a local user on my local linux as "bob".. pretty sure
> I don't! but I'm not sure where the local ssh key should be placed, to
> allow me to ssh into the remote using the key. Also, how doe this
> process work when accessing the remote from other local servers.. I'm
> assuming, I have to copy the key/files to any box I want to access the
> remote VM from.

The public key needs to be in bob's .ssh/authorized_keys file.  The
private key needs to be in the .ssh folder of any user on any computer
that wants to ssh to that account.  "ssh bob@1.2.3.4"  If you don't have
the private key saved as the default key, then you will need to either
specify it on the command line or put it in the .ssh/config file.  If
you put it in the config file, you can also set it up so you don't need
to specify the "bob@" part either.  It will automatically use that user
for that host.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux