Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

pysftp AuthenticationException while connecting to server with private key

I could finally connect.

Converted the file to a .pem file using PuTTY. Passed this .pem file and kept the rest of the parameters the same as before.

pysftp.Connection(host='hostname', username='username',
                   password='password', private_key='path to .pem file')

Hope this helps someone having similar issues.

Tags:

Python

Sftp

Ssh

Paramiko

Pysftp

Related

Django: Support for string view arguments to url() is deprecated and will be removed in Django 1.10 dplyr mutate/replace several columns on a subset of rows RxSwift: Use Zip with different type observables Express router - :id? excel vba freeze pane without select Is it possible to get the local variable and parameter values with window.onerror Using NotNull Annotation in method argument Log all HTTP requests of Tomcat Server? How to debug React Router? Find elements by data attributes Visual Studio 2015: An equivalent project is already present in the project collection How do I use Mockito to mock a protected method?

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy