django - How to connect to server with only username and public ssh key? -



django - How to connect to server with only username and public ssh key? -

i want utilize batch file connect amazon server using ssh private or public key.

i have tried

open sftp://user:password@example.com/ -hostkey="ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"

psftp fred@server.example.com

in script not able connect server. getting error.

disconnected no supported authentication methods available (server sent publickey)

i able connect putty. want batch file connect server , restart django project in that.

if able connect need go path of django project , run command

manage.py runserver

ssh -i privatekey.pem username@server.example.com

django ssh amazon-ec2 winscp

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -