Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Command with password

Discussion in 'General Discussion' started by osmancik1983, Jan 4, 2010.

  1. osmancik1983

    osmancik1983 Member

    Joined:
    Dec 18, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    51
    Hello,

    I want to know how can I use password with my command. For example:

    scp test.tar.gz - root@ip.add.re.s:/home
    If I can send this command, server will want password.


    But I want to use this command with password. So, I want to that. Command include my password. How can I make it? What is the new command.

    Thanks..

    Best wishes..
     
  2. the_bobara

    the_bobara Well-Known Member
    PartnerNOC

    Joined:
    Sep 23, 2004
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Bulgaria
    cPanel Access Level:
    Root Administrator
    there is no option for that and you have to use ssh keys to login between your servers passwordless.
    Writing passwords in scripts is not good idea.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice