2022-07-20 20:03:45 +02:00
< p >
Ce service permet d 'envoyer des fichiers sur le serveur par <?= linkToDocs(' sftp ', ' SFTP ') ?> afin de les rendre accessibles par <?= linkToDocs(' http ', ' HTTP ' ) ?> .
</ p >
2022-06-16 15:08:50 +02:00
< ? php displayIndex (); ?>
2022-09-07 02:47:50 +02:00
< section >
< h2 > Sites actuels </ h2 >
< dl >
< ? php
if ( isset ( $_SESSION [ 'username' ]))
foreach ( query ( 'select' , 'sites' , [ 'username' => $_SESSION [ 'username' ]]) as $site ) {
$url = 'http' . (( $site [ 'domain_type' ] === 'onion' ) ? '' : 's' ) . '://' . $site [ 'domain' ] . '/'
?>
< dt >/< ? = $site [ 'site_dir' ] ?> </dt>
< dd >
< a href = " <?= $url ?> " rel = " external " >< ? = $url ?> </a>
</ dd >
< ? php } ?>
</ dl >
</ section >
2022-05-20 00:15:13 +02:00
2022-05-21 02:13:42 +02:00
< section >
2022-09-07 02:47:50 +02:00
< h2 > SFTP </ h2 >
2022-05-20 00:15:13 +02:00
2022-09-07 02:47:50 +02:00
< p >
Vous avez accès à un espace < abbr title = " SSH File Transfert Protocol " > SFTP </ abbr >. Vous pouvez téléverser vos sites dans < code >/& lt ; nom du site & gt ; /*</ code >. Indiquez les données ci - dessous à votre client < abbr title = " SSH File Transfert Protocol " > SFTP </ abbr > pour y accéder .
</ p >
2022-05-20 00:15:13 +02:00
2022-09-07 02:47:50 +02:00
< section >
< h3 > Authentifier le serveur </ h3 >
2022-05-20 00:15:13 +02:00
2022-09-07 02:47:50 +02:00
< details >
< summary > Clé publique </ summary >
< code >< ? = file_get_contents ( CONF [ 'ht' ][ 'sftp_pub' ]) ?> </code>
</ details >
2022-05-21 02:13:42 +02:00
2022-09-07 02:47:50 +02:00
< details >
< summary > Empreinte </ summary >
< code >< ? = file_get_contents ( CONF [ 'ht' ][ 'sftp_fp' ]) ?> </code>
</ details >
2022-05-21 02:13:42 +02:00
2022-09-07 02:47:50 +02:00
< details >
< summary > Art ASCII </ summary >
< pre >< ? = file_get_contents ( CONF [ 'ht' ][ 'sftp_asciiart' ]) ?> </pre>
</ details >
2022-06-16 15:08:50 +02:00
2022-09-07 02:47:50 +02:00
</ section >
2022-06-16 15:08:50 +02:00
2022-09-07 02:47:50 +02:00
< section >
< h3 > Se connecter au serveur </ h3 >
< a href = " sftp://<?= isset( $_SESSION['username'] ) ? $_SESSION['username'] : '<username>'; ?>@<?= CONF['ht']['sftp_domain'] ?>:<?= CONF['ht']['public_sftp_port'] ?>/ " > sftp ://< ? = isset ( $_SESSION [ 'username' ]) ? $_SESSION [ 'username' ] : '<username>' ; ?> @<?= CONF['ht']['sftp_domain'] ?>:<?= CONF['ht']['public_sftp_port'] ?>/</a>
< dl >
< dt > Serveur </ dt >
< dd >
< code >< ? = CONF [ 'ht' ][ 'sftp_domain' ] ?> </code>
</ dd >
< dt > Port </ dt >
< dd >
< code >< ? = CONF [ 'ht' ][ 'public_sftp_port' ] ?> </code><?php if (CONF['ht']['public_sftp_port'] === 22) echo " (par défaut)"; ?>
</ dd >
< dt > Dossier </ dt >
< dd >
< code >/</ code >
</ dd >
< dt > Utilisataire </ dt >
< dd >
< code >< ? = isset ( $_SESSION [ 'username' ]) ? $_SESSION [ 'username' ] : '<username>' ; ?> </code>
</ dd >
< dt > Clé de passe </ dt >
< dd >
celle que vous avez définit lors de l 'activation de l' accès < abbr title = " SSH File Transfert Protocol " > SFTP </ abbr >
</ dd >
</ dl >
</ section >
2022-06-16 15:08:50 +02:00
</ section >