Re: [Ssh-sftp-perl-users] Using Net::SSH2 as a file handle
Brought to you by:
dbrobins
From: Bryan B. <br...@bu...> - 2006-01-23 14:19:35
|
> > Because it's not a real file. It's a stream multiplexed over an encrypted > socket connection formatted by the ssh protocol. If you read the raw > socket > you'd get ssh frames and encrypted data. > I understand the logistics of the SSH connection, and that writing directly to the socket is not what i'm suggesting. I'm not a perl hacker so i'm sure its more complicated then I think, but I what I had in mind was, since you already create a tied filehandle that one can use to send IO to after a shell channel is created, why not create a real file handle. I'll take your previous response as, its way more complicated then I think, and consider it out of scope. Unless that explanation somehow makes a difference. > > You don't exec on top of shell - exec is like exec(2) and doesn't let you > run > subsequent operations. When you have a shell channel you can send it > commands and read back the responses using the standard I/O commands in > Net::SSH2::Channel (or with filehandle ops using the tie). > Yeah, I was having problems actually using a shell channel, i was trying anything. So noted. >> An example might be handy, and/or some further documentation. > > If you get a chance to write one please submit it for inclusion. > > Thanks, > > -- > Dave > Isa. 40:31 I'll let you know about an example/documentation. I'll be messing with it over the next week or so as I have free time, If I come up with something I'll submit it for your review. Thanks, Bryan http://sourceforge.net/projects/rover |