#How to upload files to Microsoft Azure VM

1 messages · Page 1 of 1 (latest)

plush sedge
#

I have a Microsoft Azure VM instance which I connect to with a username and password to access the SSH. However, I want to connect via SFTP to write files onto the VM, but I keep getting an error with writing files into the server. I have read perms but no write perms.

It clearly a root access problem, but I dont know how to connect with root with SFTP

strange ruin
#

For security purposes I wouldn't login with root using sftp but create a directory in which you want to upload to and give your user owner

#

For example: mkdir /home/user/upload

#

And then sudo chown -R /home/user/upload/

#

And then you can use rsync or scp to upload files to there or any other sftp/scp capable client

#

scp -r /path/to/local/directory user@remote_host:/home/user/upload