Welcome to the Linux Foundation Forum!

Lab 5.1 - Set Up SSH Key-Based Authentication

GSQS Posts: 11
edited August 2020 in LFS211 Class Forum

I'm trying to understand why we use:
ssh-keygen -t rsa -f $HOME/.ssh/id-rsa
rather than just:
ssh-keygen -t rsa
What functionality is provided by the additional syntax? Thanks!


  • lee42x
    lee42x Posts: 380

    No additional functionality is added other than demonstrating the location of the key and the suggestion that the location is not fixed. Setting up separate keys to use for different machines is desirable.


Upcoming Training