Coder Social home page Coder Social logo

Add tests that use SSH keys about netmiko HOT 12 CLOSED

ktbyers avatar ktbyers commented on June 12, 2024
Add tests that use SSH keys

from netmiko.

Comments (12)

ghmj2417 avatar ghmj2417 commented on June 12, 2024

Does this include the use of being able to use pkey? I need to present a private key to my network device, rather than a password. I can't find a way to do it with this implementation.

from netmiko.

ktbyers avatar ktbyers commented on June 12, 2024

@ghmj2417 No the above is referring to standard public key / private key authentication.

from netmiko.

ghmj2417 avatar ghmj2417 commented on June 12, 2024

Thank you for the response.  I apologize ahead of time if this is not the right place to bring up my concern.  I'm in a situation where I have to use private key(s) to authenticate to network devices.  I believe I have discovered what is wrong and the path to fix it.  The path might need to be altered a bit because I am not a developer.  I need to be able to specify key_file/key_filename but the problem is scp_handler.py doesn't check to see if there is a key file.  Based off of the scp_handler.py code, in class SCPConn, def establish_scp_conn, self.scp_conn.connect needs to have an arg for key_filename=self.ssh_ctl_chan.key_file.  However, with this setup, base_connection.py needs to expose the key_file.  I just added self.key_file = key_file to class BaseSSHConnection, def init.  I have no idea if this is how it would need to be fixed to support private keys but making those changes allowed this to work.
Also, great module by the way.  It's going to make automatic deployments much easier.

On Friday, April 29, 2016 12:33 PM, Kirk Byers <[email protected]> wrote:

@ghmj2417 No the above is referring to standard public key / private key authentication.—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

from netmiko.

ktbyers avatar ktbyers commented on June 12, 2024

@ghmj2417 So you are trying to SCP files to network device and use SSH keys?

from netmiko.

ghmj2417 avatar ghmj2417 commented on June 12, 2024

Yes. Instead of using a password, my private key is used to authenticate the SSH session.

Sent from my iPhone

On Apr 29, 2016, at 4:20 PM, Kirk Byers [email protected] wrote:

@ghmj2417 So you are trying to SCP files to network device and use SSH keys?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

from netmiko.

ktbyers avatar ktbyers commented on June 12, 2024

Yes, but you are looking to do secure copy not just SSH interacting with CLI?

from netmiko.

ghmj2417 avatar ghmj2417 commented on June 12, 2024

Yes, that is correct.

Sent from my iPhone

On Apr 29, 2016, at 5:36 PM, Kirk Byers [email protected] wrote:

Yes, but you are looking to do secure copy not just SSH interacting with CLI?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

from netmiko.

ktbyers avatar ktbyers commented on June 12, 2024

Yes, your suggestion above sounds like the right direction to implement this. I might look at this in a ~week; I won't get to it before then.

from netmiko.

ghmj2417 avatar ghmj2417 commented on June 12, 2024

Sounds good. Thank you for taking care of this.

Sent from my iPhone

On May 1, 2016, at 12:10 PM, Kirk Byers [email protected] wrote:

Yes, your suggestion above sounds like the right direction to implement this. I might look at this in a ~week; I won't get to it before then.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

from netmiko.

ghmj2417 avatar ghmj2417 commented on June 12, 2024

Were you able to check into this?

from netmiko.

ktbyers avatar ktbyers commented on June 12, 2024

No, I haven't made time to look at this. I probably won't get to it for a while. I doubt I will look at this before August.

Feel free to submit a pull request on it, however.

from netmiko.

ktbyers avatar ktbyers commented on June 12, 2024

Tests on Linux for this have been implemented. Still need to add tests at least for Cisco IOS.

from netmiko.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.