New Post: Shell in winform
Hey guys, I'm searching a way to do a shellStream in a winform application and i still can't find anyway to do what i want. I already can do some command using SSHCommand and put the result in a label....
View ArticleNew Post: Run remote commands on Windows?
This might be a silly question, but how would one run commands remotely on Windows? I can successfully run commands remotely on Linux systems but I also need to do so on Windows too. Could SSH.Net be...
View ArticleNew Post: Run remote commands on Windows?
When you install a SSH-Server on your windows machine sure. Example SSH-Server for windows:http://www.freesshd.com/
View ArticleNew Post: SSH command using the RunCommand() doesn't work?
Hi Guys, I was just wondering why ssh command doesn't work on RunCommand. It hangs up. Can anyone direct me? if it's not possible, is there any other way to do it? Thanks. using (var client = new...
View ArticleNew Post: SSH command using the RunCommand() doesn't work?
Most likely it is waiting for a password on the remote shell. I'm having similar issues and posted a question regarding secondary logins but with no help yet.
View ArticleNew Post: SSH command using the RunCommand() doesn't work?
Hi BitFlipper, Base on my experiment. I hope this helps. Anyone is invited to add new ideas. This works for me. RSA-Key generated then throw secondary command.. something like LS. using (var client =...
View ArticleNew Post: SSH command using the RunCommand() doesn't work?
Hi, There are two ways to do this ShellStream and Async write/read (quite difficult) Use PortForwarding In your case you want the ssh port (22) of the machine 192.168.1.11 (untested pseudo code) using...
View ArticleNew Post: ChannelDirectTcpip incorrectly waits for EOF
In ChannelDirectTcpIp.cs, there are the following lines after the receive loop:// Channel was open and we MUST receive EOF notification, // data transfer can take longer then connection specified...
View ArticleNew Post: ChannelDirectTcpip incorrectly waits for EOF
Please attach a diff. IHMO its easier to discuss with a diff ;)
View ArticleNew Post: ChannelDirectTcpip incorrectly waits for EOF
Here you go!https://gist.github.com/MrJul/5959933
View ArticleNew Post: ChannelDirectTcpip incorrectly waits for EOF
This to answer the CanRead-Method:http://stackoverflow.com/questions/2661764/how-to-check-if-a-socket-is-connected-disconnected-in-c (don't know why silverlight is different here..)
View ArticleNew Post: ChannelDirectTcpip incorrectly waits for EOF
Thanks, that makes sense. I should have read the documentation about Poll more thoroughly, I didn't realize it was blocking until data is available without a timeout, so this concern wasn't valid....
View ArticleNew Post: Secondary login
Is it really necessary to provide code? The problem seems pretty clear to me: If you run a command that itself will generate a password request, how would one handle that? For instance, you use...
View ArticleNew Post: Secondary login
For SSH use portforwarding and open a New SshClient to the forwarded port. For everything else (e.g. sudo) use expect und write the password to the stream. Since you dont want to show some code i cant...
View ArticleNew Post: Secondary login
OK thanks for the info. One example where this is a problem is when I run Perforce commands remotely. If the user's ticket doesn't exist or has expired, then it will ask for a password. It can happen...
View ArticleNew Post: SCPClient Destination Folder
Does anyone know how to use this API to copy files to a destination folder with blanks in the folder? It's telling me the directory doesn't exist. Works fine it the directory doesn't have blanks. In...
View ArticleNew Post: SCPClient Destination Folder
Put an '@' at the front of the string, e.g:string bla = @"\\\\\\\\"; If you want to know why and what it means: http://www.dotnetperls.com/string-literal
View ArticleNew Post: SCPClient Destination Folder
Thanks for the answer, but I had also tried that with no luck. I worked around this by creating an Upload directory, scp'ing it to that location, and then doing a MV of the file into the correct...
View ArticleNew Post: SCPClient Destination Folder
in linuxmkdir " Space Folder " cd " Space Folder "/ in c# string MKDIR = @"mkdir "" Space Folder "" "; or string MKDIR = "mkdir \" Space Folder \" "; string CD= @"cd "" Space Folder ""/ "; or string...
View Article