Directories:
find /path/to/directory -type d -exec chmod 755 {} +
Files
find /path/to/directory -type f -exec chmod 644 {} +
Directories:
find /path/to/directory -type d -exec chmod 755 {} +
Files
find /path/to/directory -type f -exec chmod 644 {} +
ssh -p 22 -i ~/.ssh/<name_of_key> <username>@<host>
To fix this error, you need to add the IdentitiesOnly
with a value of yes
, which instructs ssh to only use the authentication identity files specified on the command line or the configured in the ssh_config file(s), even if ssh-agent offers additional identities.
For example:
$ ssh -o IdentitiesOnly=yes vps2
More info in this article
On a side note, if FileZilla shoots an error at connecting, run the following command from the terminal:
$ SSH_AUTH_SOCK=null filezilla &
The meaning of this error is that the number of files monitored by the system has reached the limit!!
Result: The command executed failed! Or throw a warning (such as executing a react-native start VSCode)
Solution:
Modify the number of system monitoring files
Ubuntu
sudo gedit /etc/sysctl.conf
Add a line at the bottom
fs.inotify.max_user_watches=524288
Then save and exit!
sudo sysctl -p
to check it
Then it is solved!