Find the answer to your Linux question:
Results 1 to 4 of 4
When somebody wants to login to my machine using Code: ssh they ask for my apssword which is unfortunately same password which I use to login to my machine . ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2012
    Posts
    23

    Separate password for SSH login and SCP commands


    When somebody wants to login to my machine using
    Code:
    ssh
    they ask for my apssword which is unfortunately same password which I use to login to my machine . Same for
    Code:
    scp
    command. How can I change them?

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,387
    Afaik, you cant. One account will always need the same credentials.
    However, if I read this correct "*somebody* logs in..... same password which *I* use"
    then you should use separate accounts, one per person.
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Apr 2012
    Posts
    23
    Quote Originally Posted by Irithori View Post
    Afaik, you cant. One account will always need the same credentials.
    However, if I read this correct "*somebody* logs in..... same password which *I* use"
    then you should use separate accounts, one per person.
    Maybe I was not clear the first time.. when somebody wants to copy a file from my system using scp they ask for (my) password. This password is same as that I use for sudo/login. I want to have a different password to give if somebody asks during an scp transfer.

  4. #4
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,387
    Ok, you should never ever give your ssh password or key to someone else.

    Create additonal accounts, add them to a dedicated group, maybe restrict them to sftp only, then place your files in a location, where the group has appropiate permissions.
    You must always face the curtain with a bow.

Posting Permissions

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