New Post: IsConnected does not accurately reflect connection status?
Hey folks, I have an odd issue and I'm trying to figure out if this is a bug or I'm just doing things wrong. I have code that opens a connection , writes a line to a ShellStream, and then monitors the...
View ArticleNew Post: Launch distant bash script
Hi! I'm using SSH.NET to launch bash scripts (stored in my database) on distant computers.using (SshClient client = new SshClient(execution.Host, 22, execution.User, key)) { client.Connect();...
View ArticleNew Post: Sequential commands while retaining previous environment
I searched for an answer to my question but was not able to really find anything. I know the answer is probably simple, but... I need to programmatically run commands sequentially while retaining the...
View ArticleNew Post: Channel sessions not cleaning up (Avoiding Memory Leaks)
Hours of experimentation in attempting to get SshCommand and/or ChannelSessions to properly dispose have led me nowhere. I obviously don't understand the full extent of the SshNet design (How session...
View ArticleNew Post: Sequential commands while retaining previous environment
I do some pretty weird stuff through the SshCommand. It's tricky, but pretty much anything can be done:r=0; for R in $(dmidecode -t 17 | grep Size|grep MB|awk '{print $2}'); do r=$[ $r + $R ]; done;...
View ArticleNew Post: Launch distant bash script
function findcpu() { grep 'model name' /proc/cpuinfo | uniq | awk -F':' '{ print $2}' ; }; function findkernelversion() { uname -mrs ;}; function totalmem() { grep -i 'memtotal' /proc/meminfo | awk...
View ArticleNew Post: Sequential commands while retaining previous environment
Thanks for the reply. However this won't help me because essentially I need to make multiple calls from the client side, and the environment needs to be retained from one to the next call. Using...
View ArticleNew Post: Sequential commands while retaining previous environment
ShellStream is the way to go if you want session persistence like you would see with an interactive ssh session (EX: putty). SshCommand acts more like plink. I haven't tried to use the ShellStream yet...
View ArticleCreated Unassigned: Bash problemusing ssh.net Library [1591]
Hi, here is my code```ssh.Connect(); var cmd = ssh.CreateCommand("ls -all"); var asynch = cmd.BeginExecute(delegate(IAsyncResult ar){ Console.WriteLine(cmd.Result);}, null); var cmd1 =...
View ArticleNew Comment on "Documentation"
I am unable to open the documentation..tried all the above mentioned solutions. Plz suggest what else to do.
View ArticleNew Post: "bad packet length xxxxx" error when retrieving only some secure...
I get an error "bad packet length xxxxx" when retrieving some sFTP sub directory listings. My connection is successful. FileZilla ftp client (default settings) has exact same issue with same dir's, but...
View ArticleNew Post: SSH Server
Hi, Does your component offer the ability to function as an SSH Server? Thanks Dan
View ArticleNew Post: Error: "Failed to open local file", upon downloading file
Hi, I've created a basic SFTP client. I am successful in listing the directories and was also able to upload files to server. But, I am receiving the error "Failed to open local file", when I try to...
View ArticleCreated Unassigned: SSH through Proxy Problem [1601]
Hello guys,im trying to connect through a proxy to my SSH server but i get an exception:"__Renci.SshNet.Common.SshOperationTimeoutException: Socket read operation has timed out at...
View ArticleNew Post: Code to download SFTP files.
Hello, I am new to to FTP concepts, my application is getting converted to SFTP. I wish update my existing Jelovic dll (FTP) with SSH.NET dll and need to write the code for the same. Could you kindly...
View ArticleCommented Issue: SCP : Missing files when using DirectoryUpload [1382]
Hi,I have the following environment:- Win7 / 64- .NET 3.5- MPC-Target :OpenSSH_6.0p1, OpenSSL 1.0.0j 10 May 2012- SSH.NET commit 19813I want to upload a directory structure (recursive, depth = 2) from...
View ArticleNew Post: "bad packet length xxxxx" error when retrieving only some secure...
Update: If there are 250 files or less in a subdirectory then I can retrieve a directory listing using FileZilla. If there are 235 files or less in a subdirectory then I can retrieve a directory...
View ArticleCreated Unassigned: SCP : option not to create directory structure when...
First, let me say that this library is really great! I had a requirement of accessing a private network through a SSH tunnel, and setting up port forwarding with your library was a breeze.Now, I have a...
View ArticleNew Post: How to iterate through a directory listing by count, bytes, or a...
I am trying to see if there is a way to iterate through a secure FTP directory listing by count, bytes, or a filter or some other manner. I would like to only read the first 100 or so file names in a...
View ArticleCommented Issue: SCP : Missing files when using DirectoryUpload [1382]
Hi,I have the following environment:- Win7 / 64- .NET 3.5- MPC-Target :OpenSSH_6.0p1, OpenSSL 1.0.0j 10 May 2012- SSH.NET commit 19813I want to upload a directory structure (recursive, depth = 2) from...
View Article