New Post: Using ShellStream and readline gives me double prompts
The problem comes from the StreamWriter() you use. Use writer.Write(cmd + "\n") or use the WriteLine of the ShellStream. I suggest you remove your StreamWriter() and StreamReader() and use the methods...
View ArticleNew Post: Using ShellStream and readline gives me double prompts
Thank you so much ! I have succeeded with cmd + "\n". Can you give me an example using method included in SshShellStream?
View ArticleNew Post: Using ShellStream and readline gives me double prompts
var shell = new SshShellStream(... here your shell config ...); var reader = new StreamReader(shell); shell.WriteLine(cmd); ... wait for output ... reader.ReadToEnd()
View ArticleNew Post: Using ShellStream and readline gives me double prompts
Thank you so much :) P/s: I think CreateShellStream, not SshShellStream :)
View ArticleNew Post: uploading and showing in the console success vs failure
Can anyone provide me sample to code to update a file and then output the console or anywhere for that matter the status of the transaction? using (var file = File.OpenRead(localFileName)) {...
View ArticlePatch Uploaded: #17183
yohannvf has uploaded a patch.Description:I had a bug with the FSTAT command generating an exception on a sftp where all ssh commands were disabled and maybe more.Had to do this patch to fix my local...
View ArticleNew Post: File upload failing - need help
Hi Any solution to this Issue? I have the same problem Please somebody Help Me!!!!! Thanks
View ArticleNew Post: File upload failing - need help
The Solution is in the second comment of this discussion. You have to specify the full path.
View ArticleNew Post: File upload failing - need help
Where???? static void Main(string[] args) { string host = "*.*.*.*"; string username = "test"; string password = "********"; string localFileName = "C://TEST.CSV"; string remoteFileName =...
View ArticleNew Post: File upload failing - need help
I tried to put like this string remoteFileName = System.IO.Path.GetFileName("sftp://testdev@10.2.11.5/testdev/Conversion/T.CSV"); but its doesn't work neither.... PLEASE HELP ME
View ArticleNew Post: File upload failing - need help
jorgefdez205 wrote: Where???? static void Main(string[] args) { string host = "*.*.*.*"; string username = "test"; string password = "********"; string localFileName = "C://TEST.CSV"; string...
View ArticleNew Post: File upload failing - need help
THANK YOU SO MUCH !!!!!! Is now working, I just changed string remoteFileName = System.IO.Path.GetFileName("t.CSV"); par string remoteFileName = "./t.CSV"; thank you again da_rinkes
View ArticleNew Post: The upload file SFTP there was an error saving the data...
Can you help me what to do? Message: No suitable authentication method found to complete authentication try { //config.SftpHost //config.SftpPort //config.SftpUsername //config.SftpPassword...
View ArticleNew Post: The upload file SFTP there was an error saving the data...
sftp.Connect() method is saying that: No suitable authentication method found to complete authentication
View ArticleNew Post: The upload file SFTP there was an error saving the data...
This message means the client was unable to authenticate at the server. The reason why should be visible in the ssh server logs on your target machine.
View ArticleNew Post: SshOperationTimeoutException trying to start a service on remote...
I am running several commands in sequence (each command is a separate ssh session) to install a service on RH/CentOS (5 and 6) via openssh and the last command to start the service seems to always...
View ArticleNew Post: SshOperationTimeoutException trying to start a service on remote...
I don't think it's a problem in ssh.net. Can you reproduce this behaviour with plink (http://the.earth.li/~sgtatham/putty/latest/x86/plink.exe).Usage: plink [options] [user@]host [command] where...
View ArticleNew Post: Illegal characters in SFTP File upload
Im reading a text file from Windows into a file stream, then uploading it to openVMS. The file uploads but when I look at it in openVMS each line has some sort of linebreak on the end that looks like a...
View ArticleNew Post: Illegal characters in SFTP File upload
Windows and Unix-Like OS have different definitions of a newline:http://en.wikipedia.org/wiki/Newline#Common_problems If you transfer a file between them, you have to handle it yourself. For example...
View ArticleNew Post: Can't get full result using sync method
I use SSH.Net to send command to server. But I can't get full result if the result is too long. I search the Internet and I think the reason is "bufferSize", but when I change buffer size when...
View Article