Problem Pembuatan User SSH dengan PHP

Discussion in 'VPS (Virtual Private Server)' started by icaksh, 29 May 2016.

Thread Status:
Not open for further replies.
  1. icaksh

    icaksh Beginner 1.0

    Messages:
    7
    Likes Received:
    2
    Trophy Points:
    3
    Sore Tuan, saya member baru disini, salam kenal ya :D

    Jadi gini Tuan, saya kan seorang Penjual sekaligus Operator VPS. Nah, jadi gini, saya membuat Script PHP untuk membuat akun SSH dengan PHP (Jadi kaya FastSSH gitu) Nah, memang script udah sukses masukin user dan password, Namun setelah dicoba login kok Passwordnya Salah. Lebih Lengkapnya digambar ini Tuan :)

    upload_2016-5-29_3-57-40.png

    Saya Create User, itu user password sama...

    upload_2016-5-29_3-58-33.png

    Gambar bahwa user udah sukses dibuat :)

    upload_2016-5-29_4-0-43.png

    Salah Password :(

    upload_2016-5-29_4-2-54.png

    Normalnya sih kalo Pre-encrypted kodenya acak acakan


    Saya Lampirkan Kodenya Tuan :
    PHP:
    <?php
    include('Net/SSH2.php');
    $username $_POST['username'];
    $password $_POST['password'];
    $email 'taofamily@gmail.com';
    $generateid  md5(rand (11000))                 ;
    $md5security md5(rand (100010000000000000)) ;
    $sessionid   md5(sha1(microtime()))             ;
    $ssh       = new Net_SSH2('127.0.0.1');
    if (!
    $ssh->login('root''rootpass'))
        {exit(
    'Login Failed');}
    $ssh->exec('useradd -p '.$password.' -c '.$email.' '.$username);
    ?>
    Jika bener, masalahnya dari pre encrypted bukan Tuan ? kalo bener, biar passwordnya jadi Pre-Encrypted gimana Tuan ? Makasih sebelumnya
     
  2. medanwebhost

    medanwebhost Poster 2.0

    Messages:
    112
    Likes Received:
    8
    Trophy Points:
    18
    Sudah coba pilih Normal Password?
     
    icaksh likes this.
  3. icaksh

    icaksh Beginner 1.0

    Messages:
    7
    Likes Received:
    2
    Trophy Points:
    3
    Tidak tau caranya mastah...
     
  4. jetdino

    jetdino Apprentice 2.0

    Messages:
    401
    Likes Received:
    32
    Trophy Points:
    28
    Itu yang di lingkari merah kan ada normal password atasnya?
     
    icaksh likes this.
  5. medanwebhost

    medanwebhost Poster 2.0

    Messages:
    112
    Likes Received:
    8
    Trophy Points:
    18
    Yups, bener kata mas Jetdino, pilih diatas tanda yang dilingkari merah
     
    icaksh likes this.
  6. MyhostingID

    MyhostingID Poster 2.0

    Messages:
    151
    Likes Received:
    11
    Trophy Points:
    18
    coba normal passwordnya di input juga passwordnya
     
    icaksh likes this.
  7. icaksh

    icaksh Beginner 1.0

    Messages:
    7
    Likes Received:
    2
    Trophy Points:
    3
    Maaf baru balas, nah, itu kan kesannya ribet. Biar langsung masuk ke preencryptednya gimana. Soalnya kan repot harus pindah passwordnya itu..
     
  8. icaksh

    icaksh Beginner 1.0

    Messages:
    7
    Likes Received:
    2
    Trophy Points:
    3
    Jadi gini..

    Buat akun --> Password Langsung Masuk Normal Password tanpa Memindahkannya atau
    Buat akun --> Password langsung jadi Pre-encrypted (Yang kodenya $#$@$@#$#@)
     
  9. Hosting Bagus

    Hosting Bagus Apprentice 1.0

    Messages:
    210
    Likes Received:
    16
    Trophy Points:
    18
    Portnya salah tuan, 443
     
  10. Hosting Bagus

    Hosting Bagus Apprentice 1.0

    Messages:
    210
    Likes Received:
    16
    Trophy Points:
    18
    dan pre-encrypted passwordnya salah itu tuan, harusnya ketik password tuan di normal password, jangan pilih pre-encrypted ya
     
Loading...
Thread Status:
Not open for further replies.

Share This Page

Loading...