New Post: PrivateKeyAuthentication from Stream
Well, no luck with memory file, I did eventually just tell the C# app to just write a tmp file to the users appDataPath, then it removes it away shortly after, to keep it from remaining on the box...
View ArticleNew Post: PrivateKeyAuthentication from Stream
That should do the trick so there is no need for a temp-File.var privatekeybytes = new MemoryStream(Encoding.Default.GetBytes(SshPrivateKeyString)); PrivateKeyFile privatekey = new...
View ArticleNew Post: PrivateKeyAuthentication from Stream
I read that a few times last night, and I honestly didn't understand your first comment. You said:"That should do the trick so there is no need for a temp-File" But...I AM using a temp-File, so I was a...
View ArticleNew Post: PrivateKeyAuthentication from Stream
Yupp, I meant with that code you won't need a temp-filevar webClient = new WebClient(); string myKey = webClient.DownloadString("https://10.1.1.45/pk.php?pk=joes_pk"); var privatekeybytes = new...
View ArticleNew Post: PrivateKeyAuthentication from Stream
That worked nicely, thanks da_rinkes! Now no file needed, which is awesome, I don't want to have to deal with permissions, and files and possibly leaving a copy of that private key on the workstation.
View ArticleNew Post: SftpClient.Connect - Session operation has timed out.
I'm trying to do a simple connect to SFTP and upload a file. However it always fails on the Connect() with the error 'Session operation has timed out.' It does appear to have gotten past the...
View ArticleNew Post: SftpClient.Connect - Session operation has timed out.
Hey Tim, I'm hitting the same issue using a different method, we might have same problem. The previous post I started about PrivateKeyAuthentication works on my dev server. I moved it over to the...
View ArticleNew Post: SftpClient.Connect - Session operation has timed out.
Thanks. That might help but I'm not quite sure what I'm looking at. Wireshark shows the various frames sent to and from the server. The point of interest is frame frame 25 is sent from the server to...
View ArticleNew Post: SftpClient.Connect - Session operation has timed out.
I'm not sure it helps any. But I also get "An operation was attempted on something that is not a socket" occasionally.
View ArticleNew Post: SftpClient.Connect - Session operation has timed out.
Dunno buddy. That is a bit odd. It almost sounds as if its connecting to a socket that isn't open on the server. But if WireShark shows connectivity back and forth, then it is open. Sorry I couldn't...
View ArticleNew Post: Multiple Connection (Sessions) or Multiple Command control
Hello, I have currently the problem, that I can't connect multiple times like with putty.SshClient ssh; public void Check(dynamic Parameters) { ssh = new SshClient("server", 888, "root", "pw");...
View ArticleNew Post: Multiple Connection (Sessions) or Multiple Command control
Okay... your variable "SshClient ssh;" is outside of the thread and gets overwritten each time you start your thread. Why is "ssh" outside of Check()?
View ArticleNew Post: Multiple Connection (Sessions) or Multiple Command control
da_rinkes wrote: Okay... your variable "SshClient ssh;" is outside of the thread and gets overwritten each time you start your thread. Why is "ssh" outside of Check()? Oh, I see what you mean. I...
View ArticleNew Post: Multiple Connection (Sessions) or Multiple Command control
Oke sry, was my problem. :/ It's working now fine.
View ArticleNew Post: Disable Logging
Hi, was the feature to disable logging ever implemented? I don't seen to find anything documented. Thanks, -Tim
View ArticleNew Post: Command not working in API
Hello, I readed that the ssh API create always a new session for a Command, so I executed my command like this: command1; command2string command = "ulimit; Parameters[2].ToString"; var cmd =...
View ArticleNew Post: Command not working in API
This is not the code you are using: string command = "ulimit; Parameters[2].ToString"; cause this is nonsense ;) Please paste your real code!
View ArticleNew Post: Command not working in API
ulimit is a shell builtin.http://en.wikipedia.org/wiki/Shell_builtinhttp://www.gnu.org/software/bash/manual/html_node/Bash-Builtins.html Try:string command = "bash -c \"ulimit &&...
View ArticleNew Post: Command not working in API
da_rinkes wrote: This is not the code you are using: string command = "ulimit; Parameters[2].ToString"; cause this is nonsense ;) Please paste your real code!string command = "ulimit; " +...
View Article