Hi Guys , i create a non root user with password with linux command by useradd etc… but when i try to connect by ssh return me this error
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Connection to 192.168.0.11 closed.
, why ? ?
afeter this usermod --shell /bin/bash stefano if i do su stefano return stefano@DietPi:/root$
but if i try to connect by ssh directly return
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Connection to 192.168.0.11 closed.
i try in stefano shell instal bta-lib by pip and return me this
pip install bta-lib
WARNING: The directory ‘/home/stefano/.cache/pip’ or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo’s -H flag.
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: Simple index, piwheels - Simple index
Requirement already satisfied: bta-lib in /usr/local/lib/python3.9/dist-packages (1.0.0)
Requirement already satisfied: pandas in /usr/local/lib/python3.9/dist-packages (from bta-lib) (1.5.3)
Requirement already satisfied: pytz>=2020.1 in /usr/local/lib/python3.9/dist-packages (from pandas->bta-lib) (2022.7.1)
Requirement already satisfied: python-dateutil>=2.8.1 in /usr/local/lib/python3.9/dist-packages (from pandas->bta-lib) (2.8.2)
Requirement already satisfied: numpy>=1.20.3 in /usr/local/lib/python3.9/dist-packages (from pandas->bta-lib) (1.24.1)
Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.9/dist-packages (from python-dateutil>=2.8.1->pandas->bta-lib) (1.16.0)
ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: ‘/home/stefano’
Check the permissions.
So, the reason is, that adduser did not generate your home dir.
This could have been done with the -m option of adduser.
So now mkdir /home/stefano
Then chown like above and try to login.
ooo why if i want add user ofcourse i want also home folder no ??
thannks now go with ssh in shel terminal
but why if i want connect a fodler in mate not go ? i click file —> connect to server —> choice ssh port 22and insert user and password but tell me connection faild