Click here to Skip to main content
15,895,283 members
Everything / SSH

SSH

SSH

Great Reads

by John Atten
How to use SSH to access a Linux machine from Windows
by Christian Specht
How to delete an SSH key from Git Gui
by Intel
Play audio from your Intel® Edison via Bluetooth using Advanced Audio Distribution Profile (A2DP)
by mpolaczyk
Public Key Auth - Why it's better than simple password and how to configure

Latest Articles

by Manas Kumar Mohanty
Simple open source code and technique for SFTP connectivity
by Christian Specht
How to fix when your rysnc to your webserver fails as you push a Bitbucket repository and expected Bitbucket Pipelines to deploy the site via SSH/rsync to my webservers.
by Christian Specht
After auto-deploying Jekyll sites via Bitbucket Pipelines and GitHub Actions, I wanted to try the same thing via GitLab CI as well
by Christian Specht
How to delete an SSH key from Git Gui

All Articles

Sort by Score

SSH 

28 May 2013 by John Atten
How to use SSH to access a Linux machine from Windows
7 Sep 2017 by Christian Specht
How to delete an SSH key from Git Gui
8 May 2015 by Intel
Play audio from your Intel® Edison via Bluetooth using Advanced Audio Distribution Profile (A2DP)
27 Dec 2011 by Madzmar25
Hello guys i would like to ask how can i upgrade my plesk using ssh... Right now i cant access my Plesk panel only using SSH... so i want to upgrade my plesk panel so that i can fix my problem of 500 internal error
23 Apr 2011 by klasompananas
hello allI've got a very easy question for you guys, but quite difficult for me i guessHow can my MonoDevelop C# GUI deliver commands (by pressing a button on it) to a putty window and read from it as well, communicating with a distanced linux server? (in other words i want to read...
23 Apr 2011 by Patrick Kalkman
You can use SendKeys from your application to send keystrokes to the putty window. See this link for the signature of the method.
23 Apr 2011 by CPallini
You may have a look at the CodeProject's article: SSL/TLS client/server for .NET and SSL tunnelling[^].
20 Jun 2011 by mnd017
Hi! I have a little problem programming sockets, with C#. But first.. I wrote a client-server application: Server - in C++. Simple console server, on the same computer, which response every time, when it gets something.. on port 5200. Client - in C#. Like that: (Connect, send,...
8 Nov 2011 by msdunnigan
Hello,We are periodically getting the following error when trying to connect via SFTP using Tamir.SharpSSH library:Invalid server's version String at Tamir.SharpSsh.jsch.Session.connect(Int32 connectTimeout) at Tamir.SharpSsh.jsch.Session.connect()It seems other users have hit this...
22 Nov 2011 by Ricks09
Hi AllI am trying to get data from a MySql database which is on a remote server. I want to do this using SSH tunnelling so that all the communications are encrypted and secure. I do have SSH server installed on the remote server that I am trying to connect to. I have been looking for .net...
22 Nov 2011 by Ganesan Senthilvel
Microsoft does not provide in-box. You need to search for third-party one like http://www.eldos.com/sbb/net-ssh.php?referer1=google&referer2=adwords_ssh_csharp&gclid=CP-Zt_ruy6wCFdQOfAodN1hfqA[^]
27 Dec 2011 by Richard MacCutchan
I assume the answer will be somewhere in here[^].
27 Dec 2011 by Rajesh Anuhya
go through this .., this may helps youHere - Video[^]
17 Jan 2012 by Sergey Alexandrovich Kryukov
You can use System.Diagnostics.Process.Start with re-directed output streams StandardOutput and StandardError, please see http://msdn.microsoft.com/en-us/library/system.diagnostics.process.aspx[^].You can find a code sample with redirection here:...
17 Jan 2012 by MayFlyJJ
Hi,thanks for the suggestion. Unfortunately I was not precise with my explanation: I am using a Process with asynchronous redirection of StandardOutput and StandardError, but I have no idea how to capture the other output send to the cmd process.thanks!
23 Jan 2012 by IT-NEWBIE
Hi all,I was trying to collect device type in MacOS. I used system_profiler -xml -detailLevel full to get that.In tag I can find the answer.But, I need all the possible device types available for MacOS.I referred two sample sites for windows and...
15 Dec 2012 by Ashok26
Can secureCRT be used through c#
28 Feb 2013 by Sam Van den Bossche
I'm trying to connect to a mysql database but for security reasons my provider says I have to connect trough a ssh tunnel (connection port 3306 to my localhost) I tried with putty and mysql workbench but I keep getting errors does anybody have a good tutorial or an example? grtz!
28 Feb 2013 by DinoRondelly
You can read through this,http://www.howtogeek.com/howto/ubuntu/access-your-mysql-server-remotely-over-ssh/[^]And here are some other links that might...
13 May 2013 by log98
hi every bodyI'm using this library to connect to the Linux commands I run and run butSome commands have problemsFor example, I have a problem running these commands:top and top -n 1error:TERM environment variable not set. private void button2_Click(object sender,...
13 May 2013 by Richard MacCutchan
log98 wrote:error:TERM environment variable not set.This is a shell message. Linux needs to know which terminal type you are logged in from, in order to display any output. This is usually set automatically by the default, or user, login script, that is run when you first login to the system....
29 May 2013 by mpolaczyk
Public Key Auth - Why it's better than simple password and how to configure
21 Jun 2013 by Rick van Woudenberg
Dear All,I'm looking for a piece of code that could help me with the following problem. I have an SSH Terminal Interface that works nicely. I can SSH to a server directly using an TCP/IP socket. Now what I would like is to create an SSH server that accepts connections on any given port, and...
21 Jun 2013 by Rajesh Anuhya
I have user SharpSSH to connect to the Linux terminal, it works Good. and SSH.Net also is the best one, I don't know about othersThanks--RA
1 Jul 2013 by Rick Sanford
Hey all,I think my request is simple, but I have done some research out there and nothing seems to be answering it for me other than very ugly solutions to my problem.I have a hosted MySQL database with a hosting company in which I am a reseller of there service. This means I have more...
1 Jul 2013 by Ron Beyer
SSH.NET Library[^]SharpSSH2[^]
4 Sep 2013 by anoxo
Hello to allI wanted a SSH over LPT (PLIP LPT IP) communication between a WIN OS 7 or XP, and a Linux system programming with C #The SSH over normal IP works fine but LPT can this Projekt work normally YESbut have no idea how I configure the LPT interfacethanks for any...
12 Sep 2013 by anoxo
Hello GuysNo one has an idea to PLIP?!
7 Oct 2013 by MidhunSibi
I have create a java program that will connect to unix server1 (with user name pwd),now i need to connect another server (with username password) and execute command to push data from server 1 to server 2 using java program.Server1 connection is working fine and i can execute some basic...
1 Dec 2013 by Prof2020
I wanna connect SSH using C#, but it occured a error, please give me a solution, thanks!(sorry, I do not know how to insert picture to my question}https://www.dropbox.com/s/xlush4cytxowacs/ssh.JPG[^]https://www.dropbox.com/s/j3aamj8mjxqo5jm/shh1.JPG[^]P/s: I have tested by using...
30 Nov 2013 by RaisKazi
Secure Shell(SSH) uses 22 as a port number. Try by specifying port number as 192.168.7.2:22.EditYou can also verify your credentials by SSH Client. http://www.putty.org/
2 Dec 2013 by Prof2020
Hi friends,Pls give a solution, i wanna connect SSh using window form C#, but i cant, and bellow is my...
11 Mar 2014 by Belothian
How do I mount an internet based samba share to my computer and tunnel it using SSH?I thought I had it sorted using TamirSharp from nuget, but when I monitor the packet transfer with Wireshark the only protocol that is sent is SMB2 and this is not what I need. SshShell ssh = new...
13 Nov 2014 by cchangkhongayngo
hey all!i'm trying make a small app with some function:can browse page with SSH!i have a problem when code for: connect web browser to SSH!!!some anyone can help me?i'm use Geckofx browser with xurluner....thanks! best regard!
13 Nov 2014 by Richard MacCutchan
See https://code.google.com/p/geckofx/[^].
18 Nov 2014 by Member 11243247
I need to transfer a certain file to a SFTP along with private key and passcode for private key. I am using following curl command format but I am getting curl error code 7:couldn't connect to host. Please have a look at below curl command and suggest what am I doing wrong here. Thanks a...
31 Dec 2014 by pjsr
Hi, I am using wordpress at bluehost.com . My domain is "mysimplesurvey.com". My aim is to set up some webpages which have multiple users logged on and communicating with the same MySql database. When one user changes certain things in the database, I would like triggers to cause certain...
18 Jan 2015 by pjsr
Here are the beginnings of a solution: I learned how to start a background java script, and how to make a socket connection to it from a php template file. Then the script and the template can send messages back and forth over the socket. First I had to purchase a dedicated IP address from...
18 Jan 2015 by pjsr
i almost forgot. For the above to work, you must install start the Redis server using ssh, before running the em.js file: ./redis-server
28 Feb 2015 by Maciej Los
Start reading the documentation: Getting Started with Oracle Data Provider for .NET (VB.NET Version) [^]
13 Jul 2015 by Baskar Gs
Hi,I want to transfer a file from more than one client to server.so i am decided to create WPF .Net application and then I will share the application to my clients. With use of WPF application client just mention the local file path. other things configured internally in the code. (Use...
13 Jul 2015 by Sergey Alexandrovich Kryukov
You don't know what kind of client which would require some installation you keep and mind and why could it help you to write this code.You can avoid installing anything when you use some .NET-native some library available in source code, a library containing client-side SFTP code. For...
11 Aug 2015 by Mohamad128
I have the following boxes:a) A Windows box with Eclipse CDT(or PTP)b) A Linux box,including Compiler, accessible for me only via SSH.c) A Linux box, including SVN Source, accessible for me only via SSHBoth the compiler and the hardware required to build and run my project is...
26 Oct 2015 by Vyacheslav Voronenko
One-liner to add all of the github keys as authorized to some test unix server
30 Aug 2016 by Member 10826484
I have an issue in Libssh2 - 1.7.0 and/or OpenSSL 1.1.0.When connecting through SSH using the compiled API to an old Linux box, everything is as expected.When trying to connect to a more recent distribution, the connection fails with error: Failure establishing SSH session: -8.I read...
30 Aug 2016 by Jochen Arndt
Recent Linux distributions configure SSH servers to be more restrictive by default.You might change the server SSH configuration (not recommended) or the authentication method used by your application (recommended).To avoid such troubles the best solution is to use public-key...
12 Mar 2017 by Member 10390715
Hi,I try to reboot my Ubuntu 16.04 through PHP.I installed SSH2 extension, write code and it have a problem:SSH connection: [OK]Athentication: [OK]Shell: [OK]reboot -iWelcome to Ubuntu 16.04 LTS (GNU/Linux 4.4.0-66-generic x86_64)* Documentation:...
30 Oct 2018 by Member 14038037
i am using cli ssh in one of my python code to get data from cli commanda. i have two cli commands which is giving me output in a tabular form. so i want to store the data i am getting from the command in a dictionary and using the dictionary i want to combine with a key value to display my...
20 Feb 2019 by Member 12526017
I have an ssh-rsa and SSH2 PUBLIC KEY in text files(.txt), how can i use it to connect to a given server? A sample code will be very usefull. What I have tried: I have tried the following code, but i am getting the error Algoritham negotiation fail. try { string pkeypath =...
20 Feb 2019 by Gerry Schmitz
It's not a "universal pass". A "given" server determines how these keys are exchanged / used. You pulled something out of a "open source samples database" that you don't understand and expect someone else to implement it for you.
26 May 2020 by Tshumore
I have a working query that deletes log files from a remote server. Now when i want to get the count of files that match my criteria and therefore those to delete i am unable using the SftpClient client . I am able to delete files as follows : ...
26 May 2020 by Garth J Lancaster
Simple way int count = 0; if ((file.Name != ".") && (file.Name != "..") && file.Name.EndsWith(fileextension)) { Console.WriteLine(file.FullName); client.Delete(logFilePath); count += 1; Console.ReadKey(); } more complex...
4 Jun 2020 by Tshumore
I have a utility that reads disk statistics from a remote server. I get the output as an array of lines and write it a to a text file (attached. I am having issues casting this array of lines to a List. I can write returned lines/data to a...
4 Jun 2020 by Richard MacCutchan
Text files have no concept of columns so creating a List will not help you. Also you are splitting the data at the end of line character and then trying to save each of the first six lines as fields of your class object. You need to take each...
30 Jun 2020 by Fadwa DHIFI
In the configuration file /etc/ssh/sshd_config I want to delete 4 lines starting from this line Match user sftpuser. I have developed the code below, The problem is the function SFTPCLient.WriteAllLines(string path, IEnumerable contents):...
21 Jul 2021 by Christian Specht
How to fix when your rysnc to your webserver fails as you push a Bitbucket repository and expected Bitbucket Pipelines to deploy the site via SSH/rsync to my webservers.
21 Jul 2021 by Christian Specht
After auto-deploying Jekyll sites via Bitbucket Pipelines and GitHub Actions, I wanted to try the same thing via GitLab CI as well
18 Feb 2022 by Sean Hull
I have a connection routine that attempts to connect to the ftp server. I have a decent handle on that. My issue is that it only catches exceptions during the connection. I need to watch the connection and catch anything that might happen...
9 Mar 2022 by OriginalGriff
Start here: OpenSSH key management for Windows | Microsoft Docs[^]
31 May 2022 by Arjun P
After establishing an SSH connection, when trying to SCP some files from a remote server to another using Renci.SshNet library. The command is working perfectly when given directly to the terminal, but not through .NET used this in terminal it...
31 May 2022 by k5054
Consider what SshClient.RunCommand() does. It runs the command string given on the remote system. This is the equivalent of typing ssh user@remote scp -i /private/key/file /source/file user@connecting.com:/destinatin file at the command line. ...
7 Dec 2011 by JIN Weijie
A step by step instruction for setting up the git environment on Windows for .NET development
6 Nov 2016 by Sander Knape
How to secure your Server's SSH configuration
5 Oct 2016 by Sandeep S. Sandhu
Deploy Kerberos on a Raspberry Pi IoT to provide robust and enterprise scalable authentication for IoTs (Part 2)
29 May 2023 by Manas Kumar Mohanty
Simple open source code and technique for SFTP connectivity
15 Dec 2012 by OriginalGriff
No. It's a stand alone application - it needs a user, not a program.http://en.wikipedia.org/wiki/SecureCRT[^]
8 Mar 2024 by lukeer
I did not find out what originally caused the problem. At least this works: - Remove TortoiseGit and Git - Install current version of Git and this time without the optional OpenSSH. Use Windows' OpenSSH instead - Install current version of...
16 Jan 2012 by MayFlyJJ
Hi all,its my first time posting a coding question.. I am getting crazy with the following case (searching the internet for a couple of days):I want to open SSH connections from c# via opening a process and running plink. All output should be collected and depending on the results the...
21 Nov 2015 by Member 12158147
I want to connect to my VMware Kali Linux VM through SSH. Open-SSH server and client is already installed and here are my current VM settings. I am running VMware Workstation: http://imgur.com/34vrZBU (I am sorry if you do not open links). Here is what is showing up on my router settings:...
28 Feb 2015 by Member 11487120
Currently in my company i have to follow these steps.... Login to the server using putty client on ssh, using username and password of server. type "sqlplus" to enter into oracle db. Run query ex:(select * from f_table where table.p.time > yesterday_date and table.p.time
24 May 2013 by Ashok26
The vendor which provides Secure CRT(Vandyke software), also provides ClientPack which can be used in a .NET program.
8 Jul 2013 by salders
I've encountered the same issue. You can capture ALL of plink's command-line output by executing it through a windows shell script. eg.Set objShell = WScript.CreateObject("WScript.Shell")Set objExecObject = objShell.Exec("cmd /c C:\tools\plink -load "& WScript.Arguments(0) &" "&...
26 May 2014 by superselector
The shell request failed.I am getting the above exception in Genymed SSH2 while executing command . Any idea what could be the reason for this
5 Sep 2014 by superselector
Hi The below two words are coming in the output of one command when i try to get the output using ssh in c# and write the output to text 1L5267OGICAL- This should be LOGICAL but it has some random numbers in between629Last- This should be only Last but it is having some number 629 at...
28 Sep 2022 by Member 15418280
I am trying to use ssh in c# but getting below error. No connection could be made because the target machine actively refused it. using (var client = new SshClient("hostname", "userid", "pwd")) { ...
9 Mar 2022 by Member 15421351
I want to create SSH Public Key Private key pair in windows server machine. I was able to do the same via CuteFTP Software. I want to do the SSH Public Key Private Key generation via some other software. What I have tried: Created SSH Key pair...
4 Mar 2024 by lukeer
Hi forum, I'm using TortoiseGit for several years now along with the occasional Git Gui for including just a few lines of changes in a commit. A few days ago, I had to push some of our repositories to a remote location for backup. That place...