User Tools

Site Tools


doc:appunti:linux:sa:ssh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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