python run_remote.py

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python run_remote.py相关的知识,希望对你有一定的参考价值。

# ssh variables
remote = 'carnd@54.89.247.182'

## ssh updated model and run model in remote host
# using sshpass to login, user carnd
login = 'sshpass -p "carnd"' # change carnd to password
! {login} scp ./model.py {remote}:Project/model.py
! {login} ssh {remote} 'cd Project; python3 model.py'

# alternative: using a certificate to login
cert = 'udacity-aws.pem' # change udacity-aws.pem to path to certificate
! scp -i {cert} ./model.py {remote}:Project/model.py
! ssh -i {cert} {remote} 'cd Project; python3 model.py'

以上是关于python run_remote.py的主要内容,如果未能解决你的问题,请参考以下文章

001--python全栈--基础知识--python安装

Python代写,Python作业代写,代写Python,代做Python

Python开发

Python,python,python

Python 介绍

Python学习之认识python