Quantcast
Channel: SSH.NET Library
Browsing all 2955 articles
Browse latest View live
↧

New Post: Running commands not returning results

Have you tried to turn on the blocking mode in the SshCommand.OutputStream? In this thread there is a example how it works nice:https://sshnet.codeplex.com/discussions/572434 I used this method and it...

View Article


New Post: Commands are redisplayed before results are shown

Ok, this is really getting frustrating. I've used the SshCommand class prevoiusly and had problems (see https://sshnet.codeplex.com/discussions/573944) so I was told to use ShellStream. Now ShellStream...

View Article


New Post: Commands are redisplayed before results are shown

what kind of server do you have? It looks like you have not a linux server.

View Article

New Post: Interactive Authentication

i did a simmilar thing when i worte a terminal program. I also added events and wrote a new Auth-Class which is basically a PasswordAuthenticationMethod with events then I passed the PuplickeyAuth and...

View Article

New Post: Commands are redisplayed before results are shown

Please clarify the goal of your project. It gets quite confusing for us. One day its a ubuntu server, now its a cisco device (?). Are you sure, you are just showing what the server replies? All I told...

View Article


New Post: Interactive Authentication

awesome! can you provide a patch? I'm pretty sure it would be a nice feature for our upstream codebase.

View Article

New Post: Interactive Authentication

yes i will see. It is not so easy to get just a patch with this changes... Im not so sure if it is good for the upstream, because it is a quick and dirty solution...

View Article

Created Unassigned: Dinamic Forwarding Socks5 Name Resolution via SSH [2589]

First of all. Sorry for my english. and thanks for all developers for making this amazing...

View Article


New Post: Problem with cd command in ssh

Dear all, Thanks for the awesome discussion here. I found that it has lot of useful information. I have one problem is that cd command is not working. For example, if I type cd /home/ it does not gives...

View Article


New Post: Problem with cd command in ssh

What do you expect? cd has no output.

View Article

New Post: Problem with cd command in ssh

Dear Da_rinkes Thank you for your reply. Yes, cd has no output. But, once I run it I should go the other folder. Problem is that after I run cd /home/ for example, I run pwd command and it gives me...

View Article

New Post: Problem with cd command in ssh

That's how SshCommand works. Every command is executed in a new shell. client.RunCommand("pwd") => $HOME client.RunCommand("cd /tmp") client.RunCommand("pwd") => $HOME client.RunCommand("cd /tmp...

View Article

New Post: Problem with cd command in ssh

Dear Da_rinkes Thanks for your great help and feedback. Now, I got the idea. It means whenever I will run any command, I need always to go back to the default directory. Thanks again. BR//

View Article


New Post: Problem with cd command in ssh

Every time you run a command with RunCommand you get a default environment. So just running a cd command is useless. Try this as command "cd /home; pwd" You can seperate commands with a ";". This is...

View Article

New Post: Problem with cd command in ssh

Dear bugalexx Thank you for your feedback. Is there way that I would run the command and I will not get back to the default enviroment. Thanks in advance. BR//

View Article


New Post: Problem with cd command in ssh

Only if you use the CreateShell or CreateShellStream methods. But then you maybe have to parse the terminal protocol.

View Article

New Post: Commands are redisplayed before results are shown

My goal is this. We want to create a SSH Web Client that can run on an locked down intranet site. This web client will be used remotely by system engineers when they cannot be physically in the office....

View Article


New Post: Commands are redisplayed before results are shown

Thanks, now I understand I think. What about using a finished solution like Shell in a Box?https://code.google.com/p/shellinabox/ Else I think you have to handle the Terminal Protocol, which is not...

View Article

New Post: Accessing psql after login to a server

Did you used the property SshCommand.Result? This will block till the execution is finish. If you run a command that expects input you have to use SshCommand.OutputStream to get the data. Unfortunally...

View Article

New Post: ScpClient false error detected during upload

What version of SSH.NET are you using ?

View Article
Browsing all 2955 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>