Connecting to a Linux Machine via SSH
Hi friends
I am trying to connect to a Linux machine from a Windows PC. I used to do it thru TELNET, but now I want to use SSH for better security. I tried with PYSSH, but I am going nowhere with it... Parmaiko is not working in Windows... Is there any way this can be done? I just want python to login, issue a command, get the output & then log back out...
Thanks in advance....
xav.vijay
Junior Poster in Training
55 posts since Aug 2005
Reputation Points: 10
Solved Threads: 6
I have found a way to SSH to a *IX machine... I tried it with Linux, AIX & Solaris Machines... it works fine..
I downloaded a command line version of PUTTY, called as PLINK. Its a .EXE file.
when executed from the command line
c:\plink username@192.168.0.1 -pw <password> <command to be executed in server>
it just runs the required command & displays the output in our local machine..
So by using os.popen(), we can execute it & fetch the output for further processing....
xav.vijay
Junior Poster in Training
55 posts since Aug 2005
Reputation Points: 10
Solved Threads: 6
Thanks ms_melagiri ...
I will use this code my future implementations....
xav.vijay
Junior Poster in Training
55 posts since Aug 2005
Reputation Points: 10
Solved Threads: 6