so I just setted up a fresh new raspberry pi and I want it to communicate with python using ssh from my computer to my ssh server, the pi.. I first try to connect using putty and it work, I could execute all the commands I wanted, then I tried using librarys such as Paramiko, Spur and they didn't work.
Spur code:
import spur
shell = spur.SshShell("192.168.1.114", "pi", "raspberry")
result = shell.run("ls")
print result
Paramiko code:
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(host, username, password)
Here's the error code:
spur.ssh.ConnectionError: Error creating SSH connection
Original error: Server '192.168.1.114' not found in known_hosts
This is the error with spur but it pretty much said the same thing with paramiko.
Thanks in advance :)