• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
Question by Pr03MVi · Nov 09, 2016 at 08:31 AM · networkingconnectionexternal-toolsexternal-librariesshell

Use SSH.NET in Unity

Im trying to import that library: https://github.com/sshnet/SSH.NET but I can't make it run on Unity. I'm using Unity 5.5.0b7 (64-bit).

Comment

People who like this

0 Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Mr_Orange · Jan 05, 2017 at 03:18 AM 0
Share

@Pr03MVi

Did you get it to work?

EDIT: You can get a compiled .dll here: http://j.mp/sshNet

2 Replies

· Add your reply
  • Sort: 
avatar image

Answer by Shovelcat · Dec 24, 2016 at 07:52 AM

You have to use the .net 3.5 instead of 4.0.

Comment

People who like this

0 Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Mr_Orange · Jan 05, 2017 at 03:12 AM 0
Share

Hi

@Shovelcat, can you elaborate on your answer?

Unfortunately I can't even get the project built and there is no explanation on github :(

When opening the project there is a "build.cmd" but when clicking it VS replies with "document cannot be opened. It was renamed, deleted or moved".

I did neither. Man this is frustratring.

Thanks a lot!

EDIT:

Wow, it is so easy: Simply load the project and then right-click on either the Renci.SshNet or the Renci.SshNet.NET35 entry to the right. Choose "Create" (might be called "Compile" in English, my VS2015 version is not in English so I am not 100% certain on that) and it should be done in a few seconds. You can find the .dll in the folder SSH.NET-master\SSH.NET-master\src\Renci.SshNet.NET35\bin\Debug\Renci.SshNet.dll

EDIT2: Oh yeah one more thing: As documentation is still missing on github, one can access it on http://sshnet.codeplex.com/documentation

EDIT3: You can get a compiled .dll here: http://j.mp/sshNet

avatar image xenvy04_unity · Mar 23, 2018 at 10:27 PM 0
Share

@Mr_Orange can you re-upload your .dll ? The dropbox link doesn't work anymore. thank you!

avatar image

Answer by sgrein · Oct 22, 2018 at 07:34 PM

Hello,

I tested t$$anonymous$$s on my (latest) Unity version (Unity 2018.2.12f1 (64-bit)) on Windows 10 64-bit with Visual Studio 2017.

My Unity project settings are: Scripting Runtime Environment 3.5 (API compatibility level 2.0) with Scripting Backend Mono.

I had to import the SSH.NET DLL (Net3.5 can be found on Github under the Releases section) to the Assets folder. Besides t$$anonymous$$s I did not import the DLL with Visual Studio. It seemed enough to put it in the Assets folder.

Hope t$$anonymous$$s helps somebody, best, SG

Comment

People who like this

0 Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image TruAmbition · Feb 14, 2019 at 07:56 AM 0
Share

I am having a very hard time implementing this into Unity. Would you please advise or share your full?

Running Unity 2018.3.14 OS: windows 10 Software: Visual studio acids (my 2017 community edition expired)

avatar image sgrein TruAmbition · Feb 14, 2019 at 12:40 PM 0
Share

Hello, what problem are you facing? You will have to change .NET version to 3.5 not 4. Then the SSH.NET DLL files will wok if you put it in the Assets folder.

avatar image TruAmbition sgrein · Feb 14, 2019 at 01:17 PM 1
Share

Good Morning and thank you for your prompt reply! Correct! I was have it set to 3.5 with the correct API at 2.0. I followed your instructions for the location of the dll. It only shows up when I search for it by name but not in the file explorer by directory location. I did get it to take “using Renci.Ssh” I was able to get it to take it when I dragged the entire folder “../arc/Rencissh.NET35” but the script I was using had more Rencissh using statements like Sftp that were not being accepted. Even if you have a script to share may be helpful. I’m trying to do Create ssh/telnet session to my nodes. Borderline buying the $20 SSH package on the asset store just because this has been a hassle. Just not confident it will meet my needs.

I hope you may be able to advise, this is the closet I’ve gotten but still need a valid script. Currently my project just has the dll in the asset folder and a soon to be telnet script with no additional code blocks.

This mornings Update———- Turns out the DLL I had was “targeting 4.0” so it had to disable the editor to clear that message. After a nights rest I hunted another dll and found a 2016 package with a “3.5 targeted” dll to import. NOW I can use the using stament Renci.ssh;

I’ll try and put together my script now without using the ones I’ve found online. Any attional guidance you may have would be greatly appreciated.

Best,

Show more comments

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

9 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity with SignalR 1 Answer

Client Disconnect with message “Peer Created” - PUN 0 Answers

How to make host unavailable - Unity Networking 1 Answer

Firebase and Darkrift connection 0 Answers

Network.Instantiate missing reference exception 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges