Comments (12)
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.
@ghmj2417 No the above is referring to standard public key / private key authentication.
from netmiko.
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.
@ghmj2417 So you are trying to SCP files to network device and use SSH keys?
from netmiko.
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.
Yes, but you are looking to do secure copy not just SSH interacting with CLI?
from netmiko.
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.
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.
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.
Were you able to check into this?
from netmiko.
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.
Tests on Linux for this have been implemented. Still need to add tests at least for Cisco IOS.
from netmiko.
Related Issues (20)
- Problem connecting to TP-Link switch HOT 7
- Only commands less than 64 caharacters work (Mikrotik) HOT 12
- hp_comware H3C device which in RBM mode using send_config_set with netmiko.exceptions.ReadTimeout HOT 11
- HP Comware - Display arp - no output HOT 10
- Unable to send config via txt file on Juniper device using NetMiko. Below exception HOT 1
- SSH Session Disconnect Taking Long Time After Running TMOS Command! HOT 4
- Mikrotik RouterOS - Unable to file_transfer to devices lacking flash filesystems
- Mikrotik RouterOS - file_transfer to device fails verification (not waiting long enough) HOT 1
- Unexpected FortiOS Version encountered
- Pattern not detected: '[>#]' in output - TPLINK device HOT 6
- Performance improvement, support setting DEFAULT_WINDOW_SIZE HOT 6
- Issue with Zyxel GS1900 HOT 8
- Exception has occurred: ReadTimeout HOT 2
- Netmiko tools threading solution needs updated
- SSHDetect not working with Jumphost inbetween HOT 1
- Nokia SROS issue with return value in ["xx"] HOT 7
- Warning and error: syntax error, expecting ']' or <data>: [
- security: allow SessionLog object to be passed to session_log arg HOT 12
- Driver: adtran_os not fully working as intended...
- Slack invite HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netmiko.