You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(4) |
Jul
(6) |
Aug
|
Sep
(1) |
Oct
(1) |
Nov
(2) |
Dec
|
2003 |
Jan
(8) |
Feb
|
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
(4) |
Oct
(3) |
Nov
|
Dec
(5) |
2005 |
Jan
(7) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
(7) |
Aug
(2) |
Sep
|
Oct
(6) |
Nov
|
Dec
|
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
From: Johannes G. <j_g...@ho...> - 2003-01-27 19:19:21
|
Thanks for your reply - that's what I feared ... ;0) I have in the meantime managed to dig through the code and make an automated answer to a password challenge possible ... Joh >From: Rasjid Wilcox <ra...@op...> >To: "Johannes Graumann" <j_g...@ho...>, >pys...@li... >Subject: Re: [Pyssh-discuss] Re: Re: Complete beginner and need for >scripted ssh/scp >Date: Mon, 27 Jan 2003 23:48:09 +1100 >MIME-Version: 1.0 >Received: from openminddev.net ([210.9.242.83]) by mc6-f23.law1.hotmail.com >with Microsoft SMTPSVC(5.0.2195.5600); Mon, 27 Jan 2003 04:46:59 -0800 >Received: (qmail 12524 invoked by uid 5011); 27 Jan 2003 12:46:57 -0000 >Received: from [192.168.0.2] (HELO yoda.openminddev.net) (192.168.0.2) by >openminddev.net (qpsmtpd/0.20) with SMTP; 2003-01-27 12:46:57Z >X-Message-Info: dHZMQeBBv44lPE7o4B5bAg== >X-Scanned-By: AMaViS powered >User-Agent: KMail/1.4.1 >References: <F58...@ho...> >In-Reply-To: <F58...@ho...> >Message-Id: <200...@op...> >X-SMTPD: qpsmtpd/0.20, http://develooper.com/code/qpsmtpd/ >X-Sql-Maillog-ID: 2003.01.27.23.46.56.12518.0.146166165216954 >X-Spam-Check-By: openminddev.net >X-Spam-Status: No, hits=-4.4 required=5.0 >tests=CARRIAGE_RETURNS,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_KMAIL >version=2.43-cvs >Return-Path: ra...@op... >X-OriginalArrivalTime: 27 Jan 2003 12:47:00.0066 (UTC) >FILETIME=[2F018C20:01C2C602] > >On Fri, 24 Jan 2003 3:55 am, Johannes Graumann wrote: > > christian laubscher <christian@ti...> said: > > >def main(): > > > mycon=pyssh.Ssh('tiger','localhost','22') > > > mycon.set_debuglevel(0) > > > mycon.set_sshpath(pyssh.SSH_PATH) > > > mycon.login() > > > cmd='ps auxw | grep httpd | grep -v grep ; echo $?' > > > C=mycon.sendcmd(cmd) > > > print C > > > mycon.close() > > > > > >main() > > > > That got me roling! Thanks! > > > > Another question (I know that this is bad style, but I'd like to do it > > anyway): can I hand ssh the password as a variable? How? > > > > Another question (it never stops ... ;0): How do I do scp - I think > > sourceforge sells pyssh als ssh AND scp wrapper? > >Ah. I must update the website some more. My appologies, but the website >was >put up by the original maintainer, who had grand plans for pyssh that never >quite came to pass. I took on maintanence (essentially by re-writing >pyssh) >last year, but have only recently updated the website, and then only >minimally (just enough to point people at the current version, and not the >old one). > >So the short answer is that, no, it is currenly not a scp wapper, although >I >think it could be adapted to be so with fairly little work. Feel free to >take on the task. ;-) > > > > > ># ymmv ;-) > > > > ? > >Ymmv: Your miliage may vary. > >Cheers, > >Rasjid. > > >-- >Rasjid Wilcox >Canberra, Australia (UTC +10 hrs) >http://www.openminddev.net _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus |
From: Rasjid W. <ra...@op...> - 2003-01-27 12:47:09
|
On Fri, 24 Jan 2003 3:55 am, Johannes Graumann wrote: > christian laubscher <christian@ti...> said: > >def main(): > > mycon=pyssh.Ssh('tiger','localhost','22') > > mycon.set_debuglevel(0) > > mycon.set_sshpath(pyssh.SSH_PATH) > > mycon.login() > > cmd='ps auxw | grep httpd | grep -v grep ; echo $?' > > C=mycon.sendcmd(cmd) > > print C > > mycon.close() > > > >main() > > That got me roling! Thanks! > > Another question (I know that this is bad style, but I'd like to do it > anyway): can I hand ssh the password as a variable? How? > > Another question (it never stops ... ;0): How do I do scp - I think > sourceforge sells pyssh als ssh AND scp wrapper? Ah. I must update the website some more. My appologies, but the website was put up by the original maintainer, who had grand plans for pyssh that never quite came to pass. I took on maintanence (essentially by re-writing pyssh) last year, but have only recently updated the website, and then only minimally (just enough to point people at the current version, and not the old one). So the short answer is that, no, it is currenly not a scp wapper, although I think it could be adapted to be so with fairly little work. Feel free to take on the task. ;-) > > ># ymmv ;-) > > ? Ymmv: Your miliage may vary. Cheers, Rasjid. -- Rasjid Wilcox Canberra, Australia (UTC +10 hrs) http://www.openminddev.net |
From: christian l. <chr...@ti...> - 2003-01-23 17:53:56
|
> Another question (I know that this is bad style, but I'd like to do it > anyway): can I hand ssh the password as a variable? How? i'm nearly sure there is a way you could (you might want to change a few lines in the login function, around line 219ff in pyssh.py), but: ==> that's not the way i would pursue! the good way, imho, would be to establish a trusted user (exchange of key/certificate) in order to get away with no login prompt at all (yes, ssh is very usable). > Another question (it never stops ... ;0): How do I do scp - I think > sourceforge sells pyssh als ssh AND scp wrapper? sorry, i don't know - never used it. > ># ymmv ;-) > ? 'your mileage may vary' ;-) anyway - hope it helps! -- email chr...@ti... |
From: Johannes G. <j_g...@ho...> - 2003-01-23 16:55:41
|
christian laubscher <christian@ti...> said: >def main(): > mycon=pyssh.Ssh('tiger','localhost','22') > mycon.set_debuglevel(0) > mycon.set_sshpath(pyssh.SSH_PATH) > mycon.login() > cmd='ps auxw | grep httpd | grep -v grep ; echo $?' > C=mycon.sendcmd(cmd) > print C > mycon.close() > >main() That got me roling! Thanks! Another question (I know that this is bad style, but I'd like to do it anyway): can I hand ssh the password as a variable? How? Another question (it never stops ... ;0): How do I do scp - I think sourceforge sells pyssh als ssh AND scp wrapper? ># ymmv ;-) ? Cheers and good night, Joh _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail |
From: christian l. <chr...@ti...> - 2003-01-22 22:28:22
|
> Couldn't believe there's no out of the box sshh/scp module! Came across > pyssh - but since I'm a newby parttime programmer, I really don't know how > to use it. Could someone please give me a start on how to open a session? #!/usr/bin/env python import pyssh def main(): mycon=pyssh.Ssh('tiger','localhost','22') mycon.set_debuglevel(0) mycon.set_sshpath(pyssh.SSH_PATH) mycon.login() cmd='ps auxw | grep httpd | grep -v grep ; echo $?' C=mycon.sendcmd(cmd) print C mycon.close() main() # ymmv ;-) -- |
From: Johannes G. <j_g...@ho...> - 2003-01-22 22:02:50
|
Hello, Couldn't believe there's no out of the box sshh/scp module! Came across pyssh - but since I'm a newby parttime programmer, I really don't know how to use it. Could someone please give me a start on how to open a session? Thanks, Joh _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail |
From: Rasjid W. <ra...@op...> - 2003-01-03 11:51:44
|
On Fri, 3 Jan 2003 4:45 am, Terence Lo wrote: > Anyone have any luck getting pyssh running on win32? > > it appears the only thing that appears to be holding me back is pty. i > can't find an equivalent of pty on win32.. if anyone has any advice please > let me know. thx in advance. Which version of pyssh are you using?? Version 0.2 works (mostly) on Win32, and does not require pty on Win32 (in fact, such a thing does not make sense). There are still some issues in the win32 setup, but in many circumstances it should work ok. If you have issues, my best suggestion would be to use the Cygwin version of ssh, which pyssh should work quite well with. Go to the project page: http://sourceforge.net/projects/pyssh and download from there. I'll update the main website now. I'd forgotton all about it, and it still points to the old pyssh. Cheers, Rasjid. -- Rasjid Wilcox Canberra, Australia (UTC +10 hrs) http://www.openminddev.net |
From: Terence L. <tl...@aw...> - 2003-01-02 17:44:53
|
Anyone have any luck getting pyssh running on win32? it appears the only thing that appears to be holding me back is pty. i can't find an equivalent of pty on win32.. if anyone has any advice please let me know. thx in advance. |
From: ´ÚÅÍÅ´ <gim...@sa...> - 2002-11-18 01:37:27
|
<HTML> <p align=3D"center"> <FONT size=3D2>=C1=A4=BA=B8=C5=EB=BD=C5=BA=CE =B1=C7=B0=ED =BB=E7=C7=D7=BF= =A1 =C0=C7=B0=C5 =C1=A6=B8=F1=BF=A1 <B>[=B1=A4=B0=ED]</B>=B6=F3=B0=ED =C7=A5=B1=E2=C7=D1 =B1=A4=B0=ED =B8=DE=C0= =CF=C0=D4=B4=CF=B4=D9=2E<BR>=BC=F6=BD=C5=C0=BB =BF=F8=C4=A1 =BE=CA=C0=B8=BD= =C3=B8=E9 <a href=3D"mailto:dangsin88@bcline=2Ecom?subject=3D=BC=F6=BD=C5=B0=C5=BA=CE">= <b>=BC=F6=BD=C5=B0=C5=BA=CE</b></a>=B8=A6 =B4=AD=B7=AF=C1=D6=BC=BC=BF=E4</FONT> <HEAD> <META NAME=3D"GENERATOR" Content=3D"Microsoft DHTML Editing Control"> <TITLE></TITLE> </HEAD></HEAD><p><font color=3D"red">=B8=C5=B5=E5=C7=C7=BE=C6</font>: <a href=3D"http://www=2Emadpia=2Ecom/index=2Easp?r_id=3Dyskim"><font face=3D"Times New Roman" size=3D"4">http://www=2Emadpia=2Ecom/index=2Easp?r_id=3Dyskim</font></a><f= ont face=3D"Times New Roman" size=3D"4"> </font></p> <p><a href=3D"http://www=2Emadpia=2Ecom/index=2Easp?r_id=3Dyskim"><img src=3D"http://www=2Emadpia=2Ecom/banner/banner=2Egif" border=3D"0"> <img src=3D"http://www=2Emadpia=2Ecom/banner/banner2=2Egif"= border=3D"0">=20 </a></p> <p> </p> <p><font face=3D"Times New Roman" size=3D"4">=C4=C4=C7=BB=C5=CD=B7=CE =BF=B5= =C8=AD=BA=B8=B0=ED =B8=EE=BB=E7=B6=F7=BF=A1=B0=D4 =C0=CC =BB=E7=BD=C7=C0=BB=20 =BE=CB=B7=C1=C1=DC=C0=B8=B7=CE =C7=D8=BC=AD =B3=AA=BF=A1=B0=D4 =BC=F6=C0=D4= =C0=CC =BB=FD=B0=DC=B3=AA=B4=C2 </font></p> <p><font face=3D"Times New Roman" size=3D"4">=B8=C5=BF=EC =BD=AC=BF=EE =C0= =CF =C0=D4=B4=CF=B4=D9=2E</font></p> <p><font face=3D"Times New Roman" size=3D"4">=B5=B7=B9=F6=B4=C2 =C0=E7=B9=CC= =B0=A1 =C0=E5=B3=AD=C0=CC =BE=C6=B4=CF=B6=F3=B4=CF=B1=F1=BF=E4=2E=20 </font></p> <p><font face=3D"Times New Roman" size=3D"4">=C1=FD=BF=A1=BC=AD =BC=D2=C0=CF= =BB=EF=BE=C6 =C0=CC=B0=CD=B8=B8 =C7=D8=B5=B5 -=20 =BE=C6=B8=B6 =BE=EE=C1=F6=B0=A3=C7=D1 =BF=F9=B1=DE=BA=B8=B4=D9 =B3=AA=C0=BB= =B0=CC=B4=CF=B4=D9=2E</font></p> <p><font face=3D"Times New Roman" size=3D"4">=C0=DF =BA=B8=BD=C3=B1=B8 - =C7= =D1=B9=F8 =BF=AD=BD=C9=C8=F7 =C7=D8=BA=B8=BC=C5=BF=E4=2E</font></p> <p align=3D"left" style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><font face=3D"=B1=BC=B8=B2" size=3D"2" color=3D"teal"><b> </b></font></p> <p align=3D"left" style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><font face=3D"=B1=BC=B8=B2" size=3D"2" color=3D"teal"><b>9=BF=F91=C0=CF =BF=C0=C7=C2=C7=D1 = =BF=B5=C8=AD=C0=FC=B9=AE =C6=F7=C5=D0=BB=E7=C0=CC=C6=AE "=B8=C5=B5=E5=C7=C7=BE=C6"=20 =C3=D6=B4=DC=B1=E2=B0=A3 =C3=D6=B0=ED=BC=F6=C0=CD=C0=C7 =C8=AF=C8=F1=B8=A6= =B8=C0 =BA=B8=BD=CA=BD=C3=BF=E4=2E!!</b></font></p> <p align=3D"left" style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGH= T: 100%"> </p> <p align=3D"left" style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGH= T: 100%"><font face=3D"=B1=BC=B8=B2" size=3D"2"><b>=A1=DA=A1=DA =B8=C5=B5=E5=C7=C7=BE=C6= =C0=C7 =BC=F6=C0=CD=B1=B8=C1=B6 =A1=DA=A1=DA</b></font><font face=3D"=B1=BC=B8=B2" size=3D"2"><br> </font><font face=3D"=B1=BC=B8=B2" size=3D"2" color=3D"blue"><b>3*10 =B8=C5= =C6=AE=B8=AF=BD=BA =BD=BA=C7=CA=BF=C0=B9=F6 =B9=E6=BD=C4=C0=B8=B7=CE=20 =C8=B8=BF=F8=B5=E9=BF=A1=B0=D4 =B4=EB=B4=DC=C7=D1 =BA=B8=BB=F3=C0=BB =B5=E5= =B8=AE=B0=ED =C0=D6=BD=C0=B4=CF=B4=D9=2E</b></font><font face=3D"=B1=BC=B8= =B2" size=3D"2"><br> =B6=C7=C7=D1 =B0=AD=BE=D0=C0=FB=C0=CE =B9=B0=C7=B0=B1=B8=B8=C5 =C8=B8=BB=E7= =B0=A1 =BE=C6=B4=D1 =C0=CF=B9=DD=BF=B5=C8=AD =B9=D7 =BC=BA=C0=CE =BF=B5=C8= =AD=BD=CE=C0=CC=C6=AE=B7=CE=C0=C7 =C8=B9=B1=E2=C0=FB=C0=CE=20 =BD=C3=BD=BA=C5=DB =C0=D4=B4=CF=B4=D9=2E <br> =BF=F8=B0=A1=B0=A1 =C0=D6=B4=C2 =B9=B0=C7=B0=B1=B8=B8=C5=B0=A1 =BE=C6=B4=CF= =B9=C7=B7=CE =B4=E7=BF=AC=C8=F7 =C8=B8=BF=F8=B5=E9=BF=A1=B0=D4=B8=B9=C0=BA= =BA=B8=BB=F3(=BC=F6=B4=E7)=C0=BB =C1=F6=B1=DE=C7=CF=B4=C2=20 =B0=CD=C0=D4=B4=CF=B4=D9=2E <br></font></p> <p align=3D"left" style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGH= T: 180%"><font face=3D"=B1=BC=B8=B2" size=3D"2" color=3D"blue"><b>1=C0=CE=B4=E7 3=B8=ED=BE= =BF =C3=D6=B4=EB 10=B4=DC=B0=E8=B1=EE=C1=F6 =C0=FB=BF=EB=B5=C7=B4=C2 =B4=DC=B0=E8=BA=B0=20 =C3=DF=C3=B5 =C1=A6=B5=B5 3*10=C0=D4=B4=CF=B4=D9=2E</b></font></p> <p align=3D"left" style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGH= T: 180%"><font size=3D"2">(=C3=DF=C3=B5=C0=CE =BE=F8=C0=CC =C0=CF=B9=DD=C8=B8=BF=F8=C0=BA= =C0=FD=B4=EB =C8=B8=BF=F8=B0=A1=C0=D4=C0=CC =BE=C8=B5=CB=B4=CF=B4=D9=2E)<= /font></p> <p align=3D"left" style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGH= T: 180%"><a href=3D"http://www=2Emadpia=2Ecom/index=2Easp?r_id=3Djklee"><font face=3D= "=B1=BC=B8=B2" color=3D"black"><b>=C3=DF=C3=B5=20 =BE=C6=C0=CC=B5=F0 : </b></font></a><font face=3D"=B1=BC=B8=B2" color=3D"black"><b>yskim</b></font></p> <p align=3D"left" style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGH= T: 100%"><a href=3D"http://www=2Emadpia=2Ecom/index=2Easp?r_id=3Djklee"><font face=3D= "=B1=BC=B8=B2" size=3D"4" color=3D"red"><b><u>=A1=DA =B4=EB=B4=DC=C7=D1 =B1=D4=B8=F0=C0=C7 =BC=F6=C0= =CD=B1=B8=C1=B6</u></b></font></a></p> <p align=3D"left" style=3D"MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGH= T: 100%"> </p> <p align=3D"left"><font size=3D"3"> </font><font size=3D"3" color=3D"red">=C0=CC=B9=F8=B1=E2=C8=B8=B4=C2=20 =C0=FD =B6=A7 =B3=F5=C4=A1=C1=F6 =B8=B6=BD=CA=BD=C3=BF=C0</font><font size= =3D"3"><br> </font><font size=3D"2">=B8=C5=B5=E5=C7=C7=BE=C6: </font><a href=3D"http://www=2Emadpia=2Ecom/index=2Easp?r_id=3Dyskim"><font size=3D"2">http://www=2Emadpia=2Ecom/index=2Easp?r_id=3Dyskim</font></a><= font size=3D"2">=20 </font></p> <p align=3D"left"> </p> <p align=3D"left"><font size=3D"2">1 =B4=DC=B0=E8 - 3=B8=ED - =B4=A9=C0=FB= =C8=B8=BF=F8=BC=F6 3=B8=ED - =B8=C5=B4=DE=B4=A9=C0=FB =BC=F6=C0=CD=B1=DD=20 3000=BF=F8+ (5000=BF=F8*=C3=DF=C3=B5=C0=CE) <br> 2 =B4=DC=B0=E8 - 9=B8=ED - =B4=A9=C0=FB =C8=B8=BF=F8=BC=F6 12=B8=ED - =B8=C5= =B4=DE=B4=A9=C0=FB =BC=F6=C0=CD=B1=DD 12,000=BF=F8+ (5000=BF=F8*=C3=DF=C3=B5= =C0=CE)=20 <br> 3 =B4=DC=B0=E8 - 27=B8=ED - =B4=A9=C0=FB =C8=B8=BF=F8=BC=F6 39=B8=ED - =B8= =C5=B4=DE=B4=A9=C0=FB =BC=F6=C0=CD=B1=DD 39,000=BF=F8+ (5000=BF=F8*=C3=DF=C3=B5=C0=CE)=20 <br> 4 =B4=DC=B0=E8 - 81=B8=ED - =B4=A9=C0=FB =C8=B8=BF=F8=BC=F6 120=B8=ED - =B8= =C5=B4=DE=B4=A9=C0=FB =BC=F6=C0=CD=B1=DD </font><font size=3D"2" color=3D"red">120,000=BF=F8</font><font size=3D"2"> + (5000=BF=F8*=C3=DF=C3=B5=C0=CE) <br> 5 =B4=DC=B0=E8 - 243=B8=ED - =B4=A9=C0=FB =C8=B8=BF=F8=BC=F6 363=B8=ED - =B8= =C5=B4=DE=B4=A9=C0=FB =BC=F6=C0=CD=B1=DD </font><font size=3D"2" color=3D"red">363,000=BF=F8</font><font size=3D"2"> + (5000=BF=F8*=C3=DF=C3=B5=C0=CE) <br> 6 =B4=DC=B0=E8 - 729=B8=ED - =B4=A9=C0=FB =C8=B8=BF=F8=BC=F6 1092=B8=ED - = =B8=C5=B4=DE=B4=A9=C0=FB =BC=F6=C0=CD=B1=DD </font><font size=3D"2" color=3D"red">1,092,000=BF=F8</font><font size=3D"2"> + (5000=BF=F8*=C3=DF=C3=B5=C0=CE) <br> 7 =B4=DC=B0=E8 - 2187=B8=ED - =B4=A9=C0=FB =C8=B8=BF=F8=BC=F6 3279=B8=ED -= =B8=C5=B4=DE=B4=A9=C0=FB =BC=F6=C0=CD=B1=DD </font><font size=3D"2" color=3D"red">3,279,000=BF=F8</font><font size=3D"2"> + (5000=BF=F8*=C3=DF= =C3=B5=C0=CE) <br> 8 =B4=DC=B0=E8 - 6561=B8=ED - =B4=A9=C0=FB =C8=B8=BF=F8=BC=F6 9840=B8=ED -= =B8=C5=B4=DE=B4=A9=C0=FB =BC=F6=C0=CD=B1=DD </font><font size=3D"2" color=3D"red">9,840,000=BF=F8</font><font size=3D"2"> + (5000=BF=F8*=C3=DF= =C3=B5=C0=CE) <br> 9 =B4=DC=B0=E8 - 19683=B8=ED - =B4=A9=C0=FB =C8=B8=BF=F8=BC=F6 29523=B8=ED= - =B8=C5=B4=DE=B4=A9=C0=FB =BC=F6=C0=CD=B1=DD </font><font size=3D"2" color=3D"red">29,523,000=BF=F8</font><font size=3D"2"> + (5000=BF=F8*=C3=DF= =C3=B5=C0=CE) <br> 10 =B4=DC=B0=E8 - 59049=B8=ED - =B4=A9=C0=FB =C8=B8=BF=F8=BC=F6 88572=B8=ED= - =B8=C5=B4=DE=B4=A9=C0=FB =BC=F6=C0=CD=B1=DD </font><font size=3D"2" color=3D"red">88,572,000=BF=F8</font><font size=3D"2"> + (5000=BF=F8*=C3=DF= =C3=B5=C0=CE) <br></font></p> <p align=3D"left"><font size=3D"2">=3D=3D>=B5=FB=B6=F3=BC=AD =BE=EE=B4=C0= =B4=A9=B1=B8=B3=AA - </font><font size=3D"2" color=3D"red">=B0=A2 =B0=B3=C0=CE=B4=E7 3=B8=ED=BE=BF=B8=B8 =B1=A4=B0=ED=C7= =CF=B8=E9 =B5=C7=B4=C2 =BD=C3=BD=BA=C5=DB=C0=D4=B4=CF=B4=D9 </font></p> <p align=3D"left"><font size=3D"2">=3D=3D>=C3=DF=C3=B5=C0=CE 1=B8=ED=B4= =E7 5,000=BF=F8=C0=C7 =B0=A1=C0=D4=C3=E0=C7=CF=B1=DD=C0=BB =B9=DE=B1=B8=BF=E4=2E=20 =C8=B8=BF=F8=B9=DF=BB=FD=BF=A1 =C0=C7=C7=D1 1,000=BF=F8=C0=BB =B9=DE=BD=C0= =B4=CF=B4=D9=2E <br> (=BA=BB=C0=CE=C0=C7 =C1=F7 =C3=DF=C3=B5=C0=CE 1=B8=ED=B4=E7 5000=BF=F8+100= 0=BF=F8=3D6000=BF=F8=B0=FA =B3=BB=B0=A1 =C3=DF=C3=B5=C7=CF=C1=F6 =BE=CA=BE= =C6=B5=B5 =B9=AB=C1=B6=B0=C7 =C7=CF=BA=CE=C8=B8=BF=F8=C0=CC=20 <br> =B9=DF=BB=FD=C7=CF=B8=E9 1=B8=ED=B4=E7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0=CE=C0=C7 =BC=F6=B8=A6 3=B8=ED=C0=B8=B7=CE= =C1=A6=C7=D1=C7=D1 =B0=CD=C0=BA =B9=AB=BA=D0=BA=B0=C7=D1 =B1=A4=B0=ED=BF=CD= =B4=C9=B7=C2=C0=D6=B4=C2 =BB=F3=C0=A7 =C8=B8=BF=F8=C0=BA=20 =C7=CF=C0=A7 =C8=B8=BF=F8=C0=BB =B5=B5=BF=CD =C1=D6=B6=F3=B4=C2 =C0=C7=B9=CC= =BF=A1=BC=AD =C1=A6=C7=D1 =C7=CF=BF=B4=BD=C0=B4=CF=B4=D9=2E <br> =3D=3D>=C3=DF=C3=B5=C7=D2 =BC=F6 =C0=D6=B4=C2 =C3=DF=C3=B5=C0=CE =BC=F6= =C0=C7 =C1=A6=BE=E0=C0=BA =BE=F8=BD=C0=B4=CF=B4=D9=2E <br> <br> =3D=3D>=C0=DA=BD=C5=C0=C7 =C3=DF=C3=B5=C0=CE=C0=CC 3=B8=ED=C0=CC=BB=F3=C0= =CF =B0=E6=BF=EC 4=B9=F8=C2=B0 =C3=DF=C3=B5=C0=CE=C0=BA 3=B8=ED=C0=C7 =C7=CF= =C0=A7 =C8=B8=BF=F8 =C1=DF =B0=A1=C0=D4=BC=F8=BC=AD=B0=A1=20 =B0=A1=C0=E5 =BA=FC=B8=A5 =C8=B8=BF=F8=C0=C7 =C7=CF=C0=A7=C8=B8=BF=F8=C0=B8= =B7=CE =BB=FD=BC=BA=B5=CB=B4=CF=B4=D9=2E</font> </p> <p align=3D"left"><font size=3D"2">(=B1=D7=B7=AF=B9=C7=B7=CE,=B0=A2 =B4=DC= =B0=E8 =C7=FC=BC=BA=C0=BA =BE=F6=C3=BB =BA=FC=B8=A3=B4=D9=B4=C2=B0=CD=C0=BB= =BE=CB=BC=F6=20 =C0=D6=B0=DA=C1=D2) <br></font></p> <p align=3D"left"><font size=3D"2">=B8=C5=B5=E5=C7=C7=BE=C6: </font><a href=3D"http://www=2Emadpia=2Ecom/index=2Easp?r_id=3Dyskim"><font size=3D"2">http://www=2Emadpia=2Ecom/index=2Easp?r_id=3Dyskim</font></a><= font size=3D"2">=20 </font></p> <p align=3D"left"><br> <font size=3D"2">*** =C5=F5=C0=DA=BA=F1=BF=EB *** <br> =BF=F9 2=B8=B8=BF=F8=C0=B8=B7=CE =B4=D9=BE=E7=C7=D1 =C0=E5=B8=A3=C0=C7 =BF= =B5=C8=AD =B9=D7 =BC=BA=C0=CE=BF=B5=C8=AD=B8=A6 =B0=A8=BB=F3=C7=CF=B8=E9=BC= =AD =BF=A9=B1=E2=C0=FA=B1=E2 =B8=EE=B1=BA=B5=A5 =C8=AB=BA=B8=B8=B8=20 =C7=CF=BD=C3=B8=E9 =B5=C7=B4=C2 =C0=CF=C0=D4=B4=CF=B4=D9=2E <br> <br> =B1=D7=B8=AE=B0=ED,=BF=F9 =C0=CC=BF=EB=B7=E1=B8=A6 =B0=C6=C1=A4=C7=CF=BD=C3= =B4=C2 =BA=D0=B5=E9=C0=BA =C3=D6=C3=CA =B0=A1=C0=D4=C8=C4 =BA=BB=C0=CE=C0=CC= 3=B8=ED=B8=B8 =C1=F7 =C3=DF=C3=B5 =B9=DE=C0=B8=BD=C3=B0=ED=20 =B0=A1=B2=FB =C8=AB=BA=B8=C7=CF=BF=A9 =C7=D1 ,=B5=CE=B4=DE=BF=A1 1~2=B8=ED= =C1=A4=B5=B5=B8=B8 =C7=D8=B5=B5 =BF=F9 =C0=CC=BF=EB=B7=E1=B4=C2</font> </= p> <p align=3D"left"><font size=3D"2">=C3=E6=BA=D0=C8=F7 =B3=AA=BF=C0=B8=AE=B6= =F3 =BB=FD=B0=A2=C0=CC =B5=EC=B4=CF=B4=D9=2E =B8=BB=C7=CF=C0=DA=B8=E9=20 =C0=DA=BD=C5=C0=CC =B0=A1=C0=D4=C8=C4 =C1=F7=C3=DF=C3=B5=C0=CC=B5=E7 =BE=C6= =B4=CF=B5=E7 =C0=DA=BD=C5=C0=C7 =C7=CF=BA=CE=C8=B8=BF=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=B7=CE =B4=D9=C0=BD=B4=DE =C0=CC=BF=EB=B7=E1=B8=A6=20 =C2=F7=B0=A8=C7=CF=B0=ED =BA=BB=C0=CE=C0=C7 =C5=EB=C0=E5=C0=B8=B7=CE =C0=D4= =B1=DD =C3=B3=B8=AE =C7=D8 =B5=E5=B8=AE=B1=E2 =B6=A7=B9=AE=BF=A1 =BD=C5=B0= =E6=BE=B2=BD=C3=C1=F6</font> </p> <p align=3D"left"><font size=3D"2">=BE=CA=BE=C6=B5=B5 =B5=CB=B4=CF=B4=D9=2E= <br></font></p> <p align=3D"left"><font size=3D"2">=BD=C3=B0=A3=C0=CC =B0=A1=B8=E9=BC=AD =C0= =CC=BC=F6=C0=D4=C0=BA =BA=FC=B8=A3=B0=ED =C1=F6=BC=D3=C0=FB=C0=B8=B7=CE =B4=C3=BE=EE=B3=B3=B4=CF=B4=D9=2E=20 <br> =C8=B8=BF=F8=C3=DF=C3=B5=C0=CE=BF=A1=BC=AD =B3=A1=B3=AA=B4=C2=B0=D4 =BE=C6= =B4=CF=B6=F3 =B0=E8=BC=D3=C0=FB=C0=B8=B7=CE =BC=F6=C0=D4=C0=CC =B5=C8=B4=D9= =B4=C2 =B0=CC=B4=CF=B4=D9=2E <br> =C3=DF=C3=B5=C0=CE =BE=C6=C0=CC=B5=F0=B0=A1 =BE=F8=C0=B8=B8=E9 =B0=A1=C0=D4= =C0=CC =BE=C8=B5=CB=B4=CF=B4=D9=2E =C3=DF=C3=B5=BE=C6=C0=CC=B5=F0: yskim</= font></p> <p align=3D"left"><font size=3D"2">=B8=C5=B5=E5=C7=C7=BE=C6: </font><a href=3D"http://www=2Emadpia=2Ecom/index=2Easp?r_id=3Dyskim"><font size=3D"2">http://www=2Emadpia=2Ecom/index=2Easp?r_id=3Dyskim</font></a><= font size=3D"2">=20 </font><br> <br> <font size=3D"2"> madpia=B4=C2 =B1=DB=B7=CE=B9=FA =BB=E7=C0=CC=C6=AE=B8= =A6 =B1=B8=C3=E0=C7=D8 =B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=A1= =BE=C6=B4=D4=C0=BB=20 =C0=CC=C7=D8=C7=D8 =C1=D6=BD=CA=BD=C3=BF=C0</font></p> =20 <BODY> <P> </P> </BODY> </HTML> |
From: Rasjid W. <ra...@op...> - 2002-11-06 12:26:50
|
Just thought I'd ask if anyone has any feedback they would like to give on PySSH 0.2. There are a number of things I'd like to do with it over time, but I've been busy with other things recently. However, I have had no feedback from anyone regarding the new version. Have people actually used it?? Any suggestions, or whatever, just let me know. Cheers, Rasjid. |
From: Rasjid W. <ra...@op...> - 2002-10-15 13:25:02
|
Just thought I'd ping this list... Rasjid. |
From: Rasjid W. <ra...@op...> - 2002-09-06 14:04:04
|
Hello all, Due to other commitments (mainly maintaining Webware, also on Sourceforge), Chuck has passed over maintenance of PySSH to myself. I have basically completed version PySSH 0.2. The library has been completely re-written from the ground up, and addresses some of the problems with the initial version. In particular, it no longer uses time.sleep, but instead create 'non-blocking' pipe objects to allow more controlled reading of the banner and any password prompts. Its other two main new features are: * Alpha support for MS Windows using plink.exe (part of the Putty suite). * Support for using SSH from within a Python GUI interface (such as wxWindows or Tinker) through the use of a callback function when user interaction is required. Fully automated operation is supported either via standard SSH key-agent or identity files, or by defining the callback to work in a non-interactive way (ie, when asked for a password, send <somepassword>, and if that doesn't work, abort). There are a number of features that were in the 0.1 version that I have not done yet. In particular, there is no documentation and no setup.py routine. For the moment, read the code for doco (and look at the detailed test() function), and install it manually. The main code no longer uses fork, but a new popen2 like function I have put into a modified version of pty.py. As a result, the main code should be able to be followed easily. This is also the change that allows MS Windows support. As a result, the API is quite different. If you want some of the original features, let me know, and I'll see what I can do. I'm still learning about putting up files on Sourceforge etc, so there is no official release yet. However, you can get PySSH 0.2 from http://www.openminddev.net/files/pyssh-0.2.zip with a little more info from http://www.openminddev.net/twiki/bin/view/Main/PythonPage I have never release public code before, so please let me know if I have messed up the packaging etc. It is just a plain zip file, so should be easy enough to extract under both Windows and Linux etc. *** Any feedback would be greatly appreciated. *** Rasjid. |
From: Julian Schaefer-J. <jul...@t-...> - 2002-07-22 18:54:09
|
> Had a look through the mail archives. I'd be interested in having a look > at > Julian's patch. There you go: ---- Snipp ---> 87c87,89 < time.sleep(delay) # being over cautious --- > output=os.read(fd, bufSize) # read the banner (eg everything before sys-prompt) > if debug: debug.write('>> child says: %r\n' % output) > time.sleep(delay) # being over cautious ---- Snipp ---> My substitute (previously posted) can be found here (with a little luck @dialup): http://wgfalk.dyndns.org/people/snippets/pyssh2/ > I have also done a patched version. In fact, I've also patched the tty > module, since tty.spawn was broken. > > I was after a version that would work in Windows with Putty's command line > version, and I'm hoping that my approach will. Under Linux I've then got > a > wrapper (that uses my patched tty.spawn) that enables ssh to be used with > os.popen2. I'm pretty sure that there is no tty stuff to worry about on > windows, so Putty's command line should be fine. > As for windows - I came up with the putty-idea as well - but since you can't select() file-descriptors in windows, I didn't do any work on it. It should present a pretty awful solution to provide the password on putty-prompt and provide an input-file for commands to be executed. This way it would be possible to later parse the complete output. If you come up with something better I' d love to hear about it. Greets, Julian. |
From: Rasjid W. <ra...@op...> - 2002-07-20 15:07:13
|
Hi, Had a look through the mail archives. I'd be interested in having a look at Julian's patch. I have also done a patched version. In fact, I've also patched the tty module, since tty.spawn was broken. I was after a version that would work in Windows with Putty's command line version, and I'm hoping that my approach will. Under Linux I've then got a wrapper (that uses my patched tty.spawn) that enables ssh to be used with os.popen2. I'm pretty sure that there is no tty stuff to worry about on windows, so Putty's command line should be fine. If anyone is interested in looking at what I've done, I'll tidy it up and post it to the list. Rasjid. |
From: Julian Schaefer-J. <jul...@t-...> - 2002-07-12 10:04:02
|
> Well, I can't use it if it doesn't work. :) > > I've never been able to get the interactive input of passwords and > commands, and output of the commands to work consistently... OK. So here is the patch for pyssh. At least it works for me :) - The trick is to insert another os.read() that fetches the banner (everything between password-prompt and system-prompt). I am not quite sure how this will react on empty banners (read "\r\n" or raise error), so it may be reasonable to implement those os.read() as select.select() - calls as I did. I thought it would only be consequent if one had to read the system-prompt before issuing a command. However this doesn' t seem to be necessary. If this differs on some platform - you now know what the cause is. I'd be happy to hear whether this thing works or not. Greets, Julian ______________________________________________________________ Julian Schaefer-Jasinski mailto:jas...@cs... Frankfurt, Germany http://wgfalk.dyndns.org/ "A great many people think they are thinking when they are merely rearranging their prejudices." - William James |
From: Chuck E. <Chu...@St...> - 2002-07-12 06:23:03
|
On Thursday 11 July 2002 11:48 am, Julian Schaefer-Jasinski wrote: > As previously pointed out, pyssh seems to have some difficulties. It > works perfectly and the command should be executed (one may check > that), but the output can' t be fetched due to some inconsistancy. It > seems to be important to read every output (eg also the entered > login). I have neither had the time nor the passion :) - to provide > pyssh with a patch for that, since even the developer himself doesn' > t use it. :) Well, I can't use it if it doesn't work. :) I've never been able to get the interactive input of passwords and commands, and output of the commands to work consistently... -Chuck |
From: Julian Schaefer-J. <jul...@t-...> - 2002-07-11 18:49:14
|
As previously pointed out, pyssh seems to have some difficulties. It works perfectly and the command should be executed (one may check that), but the output can' t be fetched due to some inconsistancy. It seems to be important to read every output (eg also the entered login). I have neither had the time nor the passion :) - to provide pyssh with a patch for that, since even the developer himself doesn' t use it. :) Attached to this mail you find some code which should work in place of pyssh. It is something I recently did for a project at university. I grabed the files from a package (another context) - so names may look a bit confusing - but it should work. You' re free to use it in any way you want. python pyssh.py host=3Dtycho.lpthe.jussieu.fr user=3Dmicheles = command=3Ddate password=3D******* debug=3D1=20 >> child says: "mic...@ty...'s password: "=20 >> child took 8 password bytes=20 >> sleeping 0 secs=20 >> child took 5 command bytes=20 >> child response is '\r\ndate\r\n'=20 results =3D=20 '\r\ndate\r\n'=20 I would expect a string with the date instead !=20 Any suggestion ?=20 Second question: how can I scp a file ??=20 thanks,=20 --=A0 Michele Simionato - Dept. of Physics and Astronomy 210 Allen Hall Pittsburgh PA 15260 U.S.A. Phone: 001-412-624-9041 Fax: 001-412-624-9163 Home-page: http://www.phyast.pitt.edu/~micheles/ =A0 Cheers, Julian ______________________________________________________________ Julian Schaefer-Jasinski mailto:jas...@cs... Frankfurt, Germany http://wgfalk.dyndns.org/ "A great many people think they are thinking when they are merely rearranging their prejudices." - William James |
From: Michele S. <mi...@pi...> - 2002-07-11 17:13:33
|
I have successfully installed pyssh on my machine (Red Hat Linux 7.2). However when I try to use it, nothing happens. This is what I have: python pyssh.py host=tycho.lpthe.jussieu.fr user=micheles command=date password=******* debug=1 >> child says: "mic...@ty...'s password: " >> child took 8 password bytes >> sleeping 0 secs >> child took 5 command bytes >> child response is '\r\ndate\r\n' results = '\r\ndate\r\n' I would expect a string with the date instead ! Any suggestion ? Second question: how can I scp a file ?? thanks, -- Michele Simionato - Dept. of Physics and Astronomy 210 Allen Hall Pittsburgh PA 15260 U.S.A. Phone: 001-412-624-9041 Fax: 001-412-624-9163 Home-page: http://www.phyast.pitt.edu/~micheles/ |
From: Chuck E. <Chu...@ya...> - 2002-06-07 03:43:31
|
On Thursday 06 June 2002 02:13 pm, Julian Schaefer-Jasinski wrote: > This just in case you' re still interested in making the thingy > work... If I come up with a permanent solution, respectively if I get > to write some nifty code that "knows" when to read, I'll let you > know... Cool. I can even add you to the project. -Chuck |
From: Julian Schaefer-J. <jul...@t-...> - 2002-06-06 21:14:04
|
> I had problems with pyssh where it would have "winning streaks" where > it worked fine and "losing streaks" where it didn't. I tried very hard > to fix the problems, but was not successful. It looks as if I narrowed the problem. > > TheAddicT@siddhartha:~/swt-miles/proto/engine/ssh> python pyssh.py > > command="top -n 0" host=localhost password=<passwd> debug=1 > > > > >> child says: "TheAddicT@localhost's password: " > > >> child took 9 password bytes > > >> sleeping 0 secs > > >> child took 9 command bytes > > >> child response is 'lalalala\r\n\r\ntop -n 0\r\n' > > > > results = > > '<passwd>\r\n\r\ntop -n 0\r\n' ... was the correct output. And I managed to get a "connection refused" with the wrong password. So it seams as if the thing is working. It' s just not sending the output correct... After a little fiddling I came up with this to narrow the mistake: import os import pty import time passwd = "lalalala" + "\n" cmd = "uname -a" + "\n" pid, fd = pty.fork() if pid == 0: os.execv('/usr/bin/ssh', ['/usr/bin/ssh', 'localhost']) else: time.sleep(4) print os.read(fd, 1024) # prompt os.write(fd, passwd) # send password (NOTE: invisible) time.sleep(4) os.write(fd, cmd) # send command #print os.read(fd, 1024) # read echod command time.sleep(2) print os.read(fd, 1024) # read result os.write(fd, 'exit\n') print os.read(fd, 1024) And ... just as I expected the whole thing didn' t work like this. It behaves like my original script & your lib when I used it. It simply put out the command that I used. But when I remove the comment before the fifth-but-last line it works just fine. This must have something to do with some non-existing buffer-handling like "Read me now - course when you write something else I am gone". And since the ssh-client will echo the command itself it shall be read as well. At least that' s the little nonsense I make of it now... I'll experiment a little bit & try to determine via select if there is something to read. > I ultimately ended up using the non-phrase-protected public/private key > scheme to avoid the password/passphrase. > > You'll either have to do the same, or see if you can fix the code > yourself (I already tried). You might also check c.l.p. Perhaps someone > has made progress on this since the last time I asked around. This just in case you' re still interested in making the thingy work... If I come up with a permanent solution, respectively if I get to write some nifty code that "knows" when to read, I'll let you know... Greets & thanx for your answer. Julian. |
From: Chuck E. <Chu...@St...> - 2002-06-04 18:47:11
|
Julian, I had problems with pyssh where it would have "winning streaks" where it worked fine and "losing streaks" where it didn't. I tried very hard to fix the problems, but was not successful. I ultimately ended up using the non-phrase-protected public/private key scheme to avoid the password/passphrase. You'll either have to do the same, or see if you can fix the code yourself (I already tried). You might also check c.l.p. Perhaps someone has made progress on this since the last time I asked around. Good luck, -Chuck On Tuesday 04 June 2002 11:25 am, Julian Schaefer-Jasinski wrote: > Hi, > > I recently found myself confronted w/ the problem of > remote-controling ssh. Several approaches w/ popen failed due to > password-prompt. When I found your script I tried it - but it didn' t > seem to work for me... obviously I must be doing something wrong... > > TheAddicT@siddhartha:~/swt-miles/proto/engine/ssh> python pyssh.py > command="top -n 0" host=localhost password=<passwd> debug=1 > > >> child says: "TheAddicT@localhost's password: " > >> child took 9 password bytes > >> sleeping 0 secs > >> child took 9 command bytes > >> child response is '2dAKi4xs\r\n\r\ntop -n 0\r\n' > > results = > '<passwd>\r\n\r\ntop -n 0\r\n' > > I use linux 2.4 > Ssh: OpenSSH_2.9p2, SSH protocols 1.5/2.0, OpenSSL 0x0090602f > Any hints would be greatly appreciated. > > I really don' t see what I am missing here. This is what I understand > as the most minimalistic version of your script. Maybe it is obvious > here where my problem lies: > > #!/usr/bin/python > > import os > import sys > import pty > > pid, fd = pty.fork() > if pid == 0: > os.execv("/usr/bin/ssh localhost", [""]) > sys.exit() > else: > #print os.fstat(fd) > os.write(fd, '<passwd>\n') > os.write(fd, 'top -n 0\n') > > print os.read(fd, 1024) > > thanks In advance... > > julian > > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- > http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > Pyssh-discuss mailing list > Pys...@li... > https://lists.sourceforge.net/lists/listinfo/pyssh-discuss |
From: Julian Schaefer-J. <jul...@t-...> - 2002-06-04 18:26:18
|
Hi, I recently found myself confronted w/ the problem of remote-controling ssh. Several approaches w/ popen failed due to password-prompt. When I found your script I tried it - but it didn' t seem to work for me... obviously I must be doing something wrong... TheAddicT@siddhartha:~/swt-miles/proto/engine/ssh> python pyssh.py command="top -n 0" host=localhost password=<passwd> debug=1 >> child says: "TheAddicT@localhost's password: " >> child took 9 password bytes >> sleeping 0 secs >> child took 9 command bytes >> child response is '2dAKi4xs\r\n\r\ntop -n 0\r\n' results = '<passwd>\r\n\r\ntop -n 0\r\n' I use linux 2.4 Ssh: OpenSSH_2.9p2, SSH protocols 1.5/2.0, OpenSSL 0x0090602f Any hints would be greatly appreciated. I really don' t see what I am missing here. This is what I understand as the most minimalistic version of your script. Maybe it is obvious here where my problem lies: #!/usr/bin/python import os import sys import pty pid, fd = pty.fork() if pid == 0: os.execv("/usr/bin/ssh localhost", [""]) sys.exit() else: #print os.fstat(fd) os.write(fd, '<passwd>\n') os.write(fd, 'top -n 0\n') print os.read(fd, 1024) thanks In advance... julian |
From: Chuck E. <Chu...@St...> - 2002-02-20 16:10:45
|
On Sunday 27 January 2002 07:20 am, Stefán Freyr Stefánsson wrote: > Can anybody tell me if they know of a Windows version of PySSH or if > they know if the PTY module exists somewhere for Windows? Heh. Talk about a late response. You may be able to use something like: os.exec*('ssh ro...@wh... useradd foo') (where *=those letters like v or ve) assuming you have a rsa key pair so that password prompt is required. Then you have to ask yourself if it's okay to give root access to the target box from the Windows account. (Windows is NOT well known for it's security...) Good luck, -Chuck |
From: <st...@ru...> - 2002-01-27 15:17:13
|
Hello. =20 I'm working on a little system that will be able to grab user registrations in a Windows domain controller machine and register the same user on a specified linux box. I have the means for creating a dll in C that can grab the registration and password changes and my idea was to use a script to connect to the linux box and run the 'adduser' command on it. To keep it secure I want to use SSH for the communication between the Domain Controller and the Linux box. I also want to use Python although I'm an absolute newbie in it. The reason being that I soon need to learn it in school anyways and this would probably be a great learning experience. =20 I downloaded the PySSH module and it works on Linux but unfortunately it uses the PTY module which doesn't seem to be available for the Windows platform. =20 Can anybody tell me if they know of a Windows version of PySSH or if they know if the PTY module exists somewhere for Windows? =20 If such a thing does not exist can anybody point me in the right direction for doing this? Should I forget about Python? Do I have to use VB??? (I really don't want to). =20 Kind regards, Stefan Freyr |
From: Chuck E. <Chu...@ya...> - 2001-09-20 20:54:52
|
Hi, The current pyssh code is inconsistent in returning the stdout results from the executed command. The code in question is found in the run() function in pyssh.py. I was wondering if anyone on the list has had a chance to examine this and determine any improvements? -Chuck |