Python SSH Client - Paramiko. SSH with Python.

preview_player
Показать описание
In this video, I go over how to create ssh sessions with Paramiko.

📘 Chapters:
0:00 What is Paramiko
0:29 Creating SSH sessions and sending commands with paramiko
5:22 Automating SSH commands to Multiple hosts
Рекомендации по теме
Комментарии
Автор

Very useful and easy to understand. I had to use the passphrase instead of password to make it works, but in general, everything was the same, THANKS A LOT!

TheModsRE
Автор

great job, perfect example very clear, concise easy to learn. well explained

mav
Автор

Paramiko makes it really easy to connect to Linux servers and Cisco devices. I used to do this with Perl years ago but it was very frustrating. You had to tell the library the different prompts, etc. IOS and CatOS devices worked differently.

duanewalker
Автор

Hi Sir,
Can you please specify how may I use this inspect() function to get knowledge about object?

Sparshchokra
Автор

Request: ssh basics/fundamentals. And it's use cases

Would be great.

chriskeo
Автор

How do I save command output to variables? I am not able to manipulate variables when assigning variables to output

juanariza
Автор

It was so helpfull for me thank u very much

pwcdhwe
Автор

Will this code work for connecting host with IPv6 address as well?
If not what changes might be required.

rishabhgupta
Автор

thx! you video my problem with Piramiko

anatoly_north
Автор

Great Content. Could you please help me for SFTP using paramiko only the current data-1 files from Lan to remote server. I guess exec_command will work on remote server only. What if we want to run the command on out Local i.e. LAN files? please help.

vishalmaurya
Автор

How do you keep the The shell to persist with these commands. Like your pulling the hostname, if you go ahead and navigate to a particular directory. And then in the next command You want to touch file .txt you will notice that the exec closed out and that you are not in the directory that You Navigate to do but are in the home directory again. You have to change the commands inside a single exec Is there any way around that

sandhuaditya
Автор

I did same as you said but when I replace hostname with directory command 'ls -lrt' Its giving total 0 why its happening

preethiratnala
Автор

Hi there. Thanks for the video. One quick suggestion: Do not connect to host machines as root.

Connecting as root (or allowing root over ssh) is a gigantic security flaw. We (as in the IT community) should promote the use of connecting to a remote host as a specific user, rather than root.

Thanks again! This is really cool stuff.

Zancb
Автор

Hello, how can I make an paramiko SSH connection to a SSH host, through remote desktop (RDP)?
thank you.

robertofleitas
Автор

Hello I have a duubt if I want send more command how I can do it?

juanpe
Автор

can you help me with a code that actually download a file already uploaded in a remote server?

sophylong
Автор

how do you run more then 1 command on 1 host for example a switch that needs its been hell searching for a solution online

andreygunz
Автор

Any idea how you would then connect to a mysql database in that server? I cant find anything about this

thefamousdjx
Автор

How to keep ssh alive for long running cmd on a remote server?
I am getting socket timeout and buffed.timeout while running long running shell command on remote host.

vibhorkumar
Автор

I'm not sure what I'm doing wrong.... when I try to run the snippet at 1:30, I keep getting an error.
"PermissionError: [Errno 13] Permission denied:

I've launched python from an elevated command prompt, but no joy.

seantellsit