]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - lftp/rc
lftp/rc: Don't create cwd history and transfer logs.
[config/dotfiles.git] / lftp / rc
diff --git a/lftp/rc b/lftp/rc
index 1d76629bfb25b4e97468bc177df5833dbdcdbdda..3fd251579751d1d79f18e876339d6d951d4f3d7e 100644 (file)
--- a/lftp/rc
+++ b/lftp/rc
@@ -28,10 +28,29 @@ set cmd:prompt "lftp \[\e[01;32m\]\h\[\e[00m\]:\[\e[01;34m\]\w\[\e[00m\] % "
 # Store passwords in the bookmarks file.
 set bmk:save-passwords yes
 
+# Don't store current directory of each server in ~/.lftp/cwd_history.
+set cmd:save-cwd-history no
+# Don't store transfer logs in ~/.lftp/transfer_log.
+set xfer:log no
+
+
 # No retries after a failed connection, prevents (long) delays e.g. for
 # automated jobs.
 set net:max-retries 1
 
+# If SSL is used make sure the data connection is encrypted as well. This
+# should be the default behavior!.
+set ftp:ssl-protect-data yes
+set ftp:ssl-protect-fxp yes
+# Same for control connections (default).
+set ftp:ssl-protect-list yes
+# Make sure SSL is not dropped after a successful login (default).
+set ftp:ssl-use-ccc no
+# And verify the certificate and hostname, otherwise encryption doesn't matter
+# (default).
+set ssl:check-hostname yes
+set ssl:verify-certificate yes
+
 
 # ALIASES