Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, How do I create an SSH key (for password-less login) that does not expire? I have been using ssh-keygen but can't find a switch to set the expiry. If ...
  1. #1
    Just Joined!
    Join Date
    Feb 2005
    Posts
    46

    SSH key expiration



    Hi,

    How do I create an SSH key (for password-less login) that does not expire? I have been using ssh-keygen but can't find a switch to set the expiry.

    If I can't set one that doesn't expire, how do I at least change the duration before the key expires?

    Thanks.

  2. #2
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,539
    Don't hold me to it, but I believe you can edit /etc/ssh/sshd_config to allow for passwordless login. Having said that, this is an extremely unwise thing to do if your box is accessible from the net.
    Linux Mint + IceWM Registered:#371367 New Members: click here

  3. #3
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    The keys created with ssh-keygen should not expire.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •