New 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 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 ArticleNew Post: uploading and showing in the console success vs failure
try this using (var file = File.OpenRead(localFileName)) { Console.WriteLine("\rUploading --> " + remoteFileName); Console.WriteLine("started at " + DateTime.Now+ ""); var asynch =...
View ArticleNew Post: su command
Hi I can't get it to work either . can you please help below is my code. Thanks public void ServerConnexion() { try { KeyboardInteractiveAuthenticationMethod kauth = new...
View ArticleNew Post: Stop PortForwarding is toooooooo slow !
When i try to stop a started forwared port to stop it takes more than 20 secs to stop ! Is it possible to make that run faster ? If CurrentEShopSSH.ForwardedPorts(0).IsStarted Then...
View Article