You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having some trouble connecting to a Raspberry Pi as a Lab config. I'm getting the follow error when I try to run the interactive_lab command. I can connect using the command ssh 172.16.100.119 without a password just fine. This connection is also in the known_hosts file.
paramiko.ssh_exception.SSHException: Server '172.16.100.119' not found in known_hosts
ssh_config
Host 172.16.100.119
HostName 172.16.100.119
User pi
IdentityFile /home/drewwestrick/.ssh/rasp_pi
tc.py
importtbotfromtbot.machineimportconnector, linuxclassAwesomeLab(
connector.ParamikoConnector,
linux.Bash,
linux.Lab,
):
name="172.16.100.119"hostname="172.16.100.119"username="pi"@propertydefworkdir(self):
returnlinux.Workdir.athome(self, "tbot-workdir")
# tbot will check for `LAB`, don't forget to set it!LAB=AwesomeLab```c
The text was updated successfully, but these errors were encountered:
I think I found one workaround for now. If I add a ignore_hostkey = True after the username property, it allows me to make a connection. It does appear that Paramiko is doing a load_system_host_keys which I believe is reading the ~/.ssh/known_hosts file. What I still don't understand is why it doesn't find my Server in that file even though a regular ssh command from the command line seems to be doing that just fine.
Hi, thanks for the report. This looks odd indeed, I never had a problem like this... But it certainly looks like an upstream paramiko issue, I think.
To be quite honest, I would suggest that you switch to using the connector.SSHConnector instead. It uses the ssh command exactly like you would and thus sidesteps all of those odd issues from differences between OpenSSH and Paramiko...
Uh oh!
There was an error while loading. Please reload this page.
I'm having some trouble connecting to a Raspberry Pi as a Lab config. I'm getting the follow error when I try to run the interactive_lab command. I can connect using the command ssh 172.16.100.119 without a password just fine. This connection is also in the known_hosts file.
paramiko.ssh_exception.SSHException: Server '172.16.100.119' not found in known_hosts
ssh_config
tc.py
The text was updated successfully, but these errors were encountered: