doc:appunti:linux:sa:ssh
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:linux:sa:ssh [2022/02/11 11:22] – [rush] niccolo | doc:appunti:linux:sa:ssh [2022/02/11 11:30] (current) – [rush] niccolo | ||
|---|---|---|---|
| Line 46: | Line 46: | ||
| < | < | ||
| - | # Sftp-server requests: chroot to the virtual server, change to the user's | ||
| - | # home directory, set umask to 002 and execute only | ||
| - | # / | ||
| - | # | ||
| - | # Setting for a chroot directory created using ' | ||
| - | # | ||
| - | # Remark: The location '/ | ||
| - | |||
| rule sftp-rush | rule sftp-rush | ||
| command ^.*/ | command ^.*/ | ||
| Line 62: | Line 54: | ||
| chdir ~ | chdir ~ | ||
| </ | </ | ||
| + | |||
| + | Si dovrebbe quindi poter accedere via **sftp**, ma fallire via **ssh**: | ||
| + | |||
| + | < | ||
| + | sftp -P 22 sftp-user@remote.host.com | ||
| + | sftp-user@remote.host.com' | ||
| + | Connected to sftp-user@remote.host.com. | ||
| + | sftp> | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | ssh -p 22 sftp-user@remote.host.com | ||
| + | sftp-user@remote.host.com' | ||
| + | You do not have interactive login access to this machine. | ||
| + | Contact the systems administrator for further assistance. | ||
| + | Connection to remote.host.com closed. | ||
| + | </ | ||
| ===== SSH su Windows ===== | ===== SSH su Windows ===== | ||
doc/appunti/linux/sa/ssh.1644574974.txt.gz · Last modified: by niccolo
