## Python per SysAdmin
### Paramiko: SSH via Python
```python
import paramiko
def esegui_comando_remoto(host, user, key_file, comando):
client = paramiko.SSHClient()
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
try:
client.connect(
hostname=host,
username=user,
key_filename=key_file,
timeout=10
)
...
### Paramiko: SSH via Python
```python
import paramiko
def esegui_comando_remoto(host, user, key_file, comando):
client = paramiko.SSHClient()
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
try:
client.connect(
hostname=host,
username=user,
key_filename=key_file,
timeout=10
)
...
Contenuto riservato ai membri
Registrati gratis per leggere l'articolo completo e commentare.
Crea account gratis → Ho già un account
💬 Commenti (0)
Nessun commento ancora. Sii il primo!