Now, I am trying to connect it with the WinSCP.
Connection part is completed using the public key and I can browse files as well as use PuTTY to perform commands. By default an user named
ubuntuis created. Problem starts when I try to perform file transferring.
If, I just drag and drop files from my computer (WinSCP left side) to the remote machine (WinSCP right side) it shows an error,
Now, there are certain resolutions available over the net to handle that,Permission denied.
Error code: 3
Error message from server: Permission denied
In a jest, I have to provide permissions to the concerned folders.
sudo chown -R -v ubuntu /home/your_folder/ chmod 777 /home/your_folder/
sudo chown..command, it shows me a different error,
This leads to the following resolution,sudo: /etc/sudoers is owned by uid 1000, should be 0
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
pkexec chown ubuntu:ubuntu /etc/sudoers /etc/sudoers.d -R
Probably, I am going too far and it is not the way to resolve the matter. Regarding the password, I have a public key file so, can't enter one when prompted. Can any one have any idea regarding the problem and solution ? If I try to make the current user a super user that too require root permission.==== AUTHENTICATING FOR org.freedesktop.policykit.exec ===
Authentication is needed to run `/bin/chown' as the super user
Authenticating as: Ubuntu (ubuntu)