2 ms·
While your code was valid, open('~/.ssh/id_rsa.pub'...) won't work on any Python other interpreter, you need to expand ~ from the path. For example you can use:
by ciupicri 8y ago
While your code was valid, open('~/.ssh/id_rsa.pub'...) won't work on any Python other interpreter, you need to expand ~ from the path. For example you can use:
open(os.path.expanduser('~/.ssh/id_rsa.pub'), 'r')
- rmdashrfstar 8y agoDoes this line not cause the above stacktrace?