Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

ssh

Paramiko “Unknown Server”

August 21, 2022 by Magenaut

I’m trying to get started with the Paramiko library, but the library is throwing an exception as soon as I try to connect with the following simple program:

Categories Python, Q&A Tags macos, paramiko, python, ssh Leave a comment

Perform commands over ssh with Python

August 20, 2022 by Magenaut

I’m writing a script to automate some command line commands in Python. At the moment, I’m doing calls like this:

Categories Python, Q&A Tags python, ssh Leave a comment

Is there a simple way to get rid of junk values that come when you SSH using Python’s Paramiko library and fetch output from CLI of a remote machine?

August 20, 2022 by Magenaut

I am using Python’s Paramiko library to SSH a remote machine and fetch some output from command-line. I see a lot of junk printing along with the actual output. How to get rid of this?

Categories Python, Q&A Tags ansi-escape, paramiko, python, shell, ssh Leave a comment

Some Unix commands fail with ” not found”, when executed using Python Paramiko exec_command

August 19, 2022 by Magenaut

I am trying to run sesu command in Unix server from Python with the help of Paramiko exec_command. However when I am running this command exec_command('sesu test'), I am getting

Categories Python, Q&A Tags paramiko, python, shell, ssh Leave a comment

Environment variable differences when using Paramiko

August 19, 2022 by Magenaut

I am connecting to SSH via terminal (on Mac) and run a Paramiko Python script and for some reason, the two sessions seem to behave differently. The PATH environment variable is different in these cases.

Categories Python, Q&A Tags environment-variables, paramiko, python, ssh Leave a comment

How to use Paramiko logging?

August 19, 2022 by Magenaut

I’m using Paramiko in Python to run command on a box through SSH. How to use Paramiko logging? I mean force it to make logs (in a file or terminal) and set the log level.

Categories Python, Q&A Tags logging, paramiko, python, ssh Leave a comment

Pass input/variables to command/script over SSH using Python Paramiko

August 19, 2022 by Magenaut

I am having issues passing responses to a bash script on a remote server over SSH.

Categories Python, Q&A Tags bash, linux, paramiko, python, ssh Leave a comment

What is the simplest way to SSH using Python?

August 19, 2022 by Magenaut

How can I simply SSH to a remote server from a local Python (3.0) script, supply a login/password, execute a command and print the output to the Python console?

Categories Python, Q&A Tags linux, python, ssh, unix Leave a comment

How to copy a file to a remote server in Python using SCP or SSH?

August 18, 2022 by Magenaut

I have a text file on my local machine that is generated by a daily Python script run in cron.

Categories Python, Q&A Tags automation, python, scp, ssh Leave a comment

Paramiko ssh die/hang with big output

August 18, 2022 by Magenaut

I try to backup a server using Paramiko and ssh to call a tar command. When there is a limited number of files, all works well but when it’s a big folder, the script wait endlessly. The following test shows me that the problem comes from the size of the stdout.

Categories Python, Q&A Tags paramiko, python, ssh Leave a comment
Older posts
Page1 Page2 … Page20 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress