Wednesday, August 14, 2013
5:45 PM

PUTTY command line ssh login with plink


First we need Putty in Linux ?

     Download the PUTTY source code file from :

            http://the.earth.li/~sgtatham/putty/latest/putty-0.63.tar.gz


After that we need build that package. we need gcc and gcc-devel packages, if you want gui we need gtk-2 packages

$  tar -zxvf putty-0.63.tar.gz
$  cd putty-0.63

$  ./configure --prefix=/apps/putty  # your installation location

(or)

$ ./configure               #if you don't want seperatly remove --prefix

$ make
$ make install

$ cd /app/putty/bin
$ ./plink -ssh  -l somexyz 10.0.2.200
:
:
$  # login into 10.0.2.200
$ exit

for enabling X11 in plink as :

$./plink -ssh -X -l somexyz 10.0.2.200

for command line passing password as :

$  ./plink -ssh -X -l somexyz -pw xyzabc 10.0.2.200

for running remote system commands as :

$  ./plink -ssh -X -l somexyz -pw xyzabc 10.0.2.200  "uname  -a"

0 comments:

Post a Comment