LoginSignup
0
0

【久留米工大 DS部コンペ-WEBアプリ】環境構築 フォルダの配置

Last updated at Posted at 2024-04-18

UbuntuサーバーにDjangoのフォルダを配置。

今回はscpコマンドでフォルダを配置したが、差分コピーができるsftpコマンドの方が使い勝手が良さそう。

scpで送信

scp -P ポート番号 -r ローカルパス ユーザー@ホスト:リモートパス

sftp(SSH File Transfer Protocol)で送信

sftpセッションを開始し、putコマンドを使用してファイルをリモートサーバーに転送します。

sftp username@remote_host
put ローカルパス リモートパス

SSHで送信

ssh ユーザー@ホスト 'cat > リモートパス' < ローカルパス

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0