New Post: Accessing psql after login to a server
Instead of doing the shell dance, I propose to use a local forwarding. You can forward the database socket to your ssh client and talk to the database directly.
View ArticleNew Post: Exception while disposing sshclient object
Hello all I am using the SSH.Net library in a project where I connect to a NetApp host. This generally works very good. However in cases where the host does not answer I get the following exception:A...
View ArticleNew Post: Proposal: Switching to GIT?
Hear ye, hear ye! Git would be absolutely positively super duper awesome. I'm currently using this library for a client, where we use Git. I have a couple of bug fixes and improvements that I'd like to...
View ArticleNew Post: Exception while disposing sshclient object
Philipp, What version of SSH.NET are you using ?
View ArticleNew Post: Exception while disposing sshclient object
As I wrote: 2014.4.6-beta1. This is a productive system and it is not that easy to deploy the lates version. In the code I saw that SshClientobject.Dispose() also calles the Disconnect() methode. The...
View ArticleNew Post: Disconnect blocks forever
Hello, I have the same problem. I'm using ssh.net 2014.4.6-beta2 I'm doing a reboot on a linux machine and disconnecting as fast as i can after that. The sshclient hangs in the Disconnect method...
View ArticleNew Post: Disconnect blocks forever
This is a known issue in beta 2 that I already ran into myself. Please submit an issue for this so we don't lose track of it. You can refer to this discussion. It happens when the server disconnects,...
View ArticleNew Post: Disconnect blocks forever
Thank you for the information. I have submitted an issue:https://sshnet.codeplex.com/workitem/2591
View ArticleNew Post: Connecting to Specific Port and then Send the login commands
Dear all, I need to login to one server in this way: telnet IP port login:user:password; send the command; exit; How can I do this? Thank you and regards. BR//
View ArticleNew Post: Connecting to Specific Port and then Send the login commands
By using a telnet library, this library is just for SSH. Quick google search result:http://www.codeproject.com/Articles/19071/Quick-tool-A-minimalistic-Telnet-library Hint: Avoid telnet! It's totally...
View ArticleNew Post: Proposal: Switching to GIT?
Please move this project to GitHub. While I like CodePlex's release functionality GitHub is a much better platform for collaboration. I am actively using this library at work and I cannot tell you how...
View ArticleNew Post: Create an SSH tunnel
I want to connect to an OpenVPN server through an SSH tunnel. Until now I open the tunnel manually with the following command : ssh -NfD 1080 username@remote.com I want to do the exact same command but...
View ArticleNew Post: Create an SSH tunnel
I did this :using (var client = new SshClient("remote.com", "username", "password")) { client.Connect(); var port = new ForwardedPortLocal("localhost", 1080, "remote.com", 1080);...
View ArticleNew Post: Create an SSH tunnel
ForwardedPortLocal != ForwardedPortDynamic From ssh man-page: -D [bind_address:]port Specifies a local ``dynamic'' application-level port forwarding. Else the code looks fine. Edit: On a second...
View ArticleNew Post: Create an SSH tunnel
Thanks, it worked. Here's my code : public void Start() { using (var client = new SshClient("vps97919.ovh.net", "tunnel", "123456")) { client.KeepAliveInterval = new TimeSpan(0, 0, 30);...
View ArticleNew Post: Create an SSH tunnel
What are you using instead of console? I usually create a simple WinForms App which I can minimze to the system tray.
View ArticleNew Post: Create an SSH tunnel
I use a console App but in the project settings I select the output as Windows application instead of Console Application I tried a WinForms App but the SSH tunel closes when the Start function is...
View ArticleNew Post: Create an SSH tunnel
If you use the same code as some posts above, of course the tunnel is closed. You are disposing the client object after port.Start(), thats what a using is block is for. Just don't use using. Maybe...
View Article