FTP von Fritz zu Fritz

telefonicus

Aktives Mitglied
Mitglied seit
14 Okt 2005
Beiträge
966
Punkte für Reaktionen
1
Punkte
18
Hallo,
ich hab zwei 7320 mit je 1 Terabyte HDD im LAN und möchte größere Datenmengen von der einen zur anderen übertragen, ohne mit dem PC online dabei zu stehen.

Kann ich den FTP-Transfer eines ganzen Verzeichnisses per Telnet "anschubsen" und dann meinen Laptop zuklappen und mich damit davonmachen? Oder wird beim Abbruch der Telnet-Sitzung auch die FTP-Sitzung beendet?

Oder gibt es noch andere Möglichkeiten?

Gruß,
Telefonicus
 
Probier mal, mit kafmännischen UND am Ende deines ftp Kommandos: &
Dann drückst du zum Beenden der Sitzung: Strg + D
...und klappst den Laptop zu.

Gehts?

Ansonsten empfehl ich für sowas screen oder tmux.
Die bieten mehrere Konsolen aus denen man sich "detachen" um sich später zu "attachen".
Nach dem "Detachen" laufen alle in screen oder tmux gestarteten Programme weiter.
Dann kann die Sitzung (telnet) geschlossen werden und klapptst zu.

Das Programm tmux gibts als Binary hier irgendwo im Forum.
 
Zuletzt bearbeitet:
Hallo noch mal,
danke für den Tipp mit dem &-Zeichen. ich habe das Problem inzwischen anders gelöst bzw umgangen. Trotzdem würde mich interessieren, wie ich mit der Telnet Console mal schnell ein paar Dateien von Fritz zu Fritz kopieren kann. FTP kann die Fritzbox offenbar gar nicht (oder muss ich erst den ftpd-Dämon starten?), dafür aber TFTP

Code:
# ftp
-sh: ftp: not found
# tftp
BusyBox v1.19.3 (2012-08-08 12:53:46 CEST) multi-call binary.

Usage: tftp [OPTIONS] HOST [PORT]

Transfer a file from/to tftp server

        -l FILE Local FILE
        -r FILE Remote FILE
        -g      Get file
        -p      Put file

TFTP habe ich bisher nur mit einem Windows-Server benutzt, ist aber auch schon ein paar Jahre her (als ich noch 7170-Boxen geflascht habe :-) ).

Ist der TFTP-Pozess auf der Fritzbox Client und Server in einem? Wie muss ich tftp aufrufen, um z. B. ein Verzeichnis aufzulisten?
 
Das ist einfacher als du denkst.
In früheren Zeiten hat man schon auf die Art Programme auf die Box/en gezogen: wget für HTTP und ftpget für ... ?
 
Bei Boxen mit Fernzugriff, auch wenn es nur IP-Klienten sind, kann ein FTP Server aktiviert werden.
Dann geht sowas schon.
Code:
ftpget -u koyaanisqatsi -p secret -v fritz.box .profile .profile
Connecting to fritz.box (192.168.178.1:21)
ftpget: cmd (null) (null)
ftpget: cmd USER koyaanisqatsi
ftpget: cmd PASS secret
ftpget: cmd TYPE I (null)
ftpget: cmd PASV (null)
ftpget: cmd SIZE .profile
ftpget: cmd RETR .profile
ftpget: cmd (null) (null)
ftpget: cmd QUIT (null)
Typisch Linux: Bei Erfolg wird nix gemeldet, nur bei Fehler/n.
Deswegen der Parameter: -v
 
Zuletzt bearbeitet:
Danke für die Tipps!

Ich habe mal dem Filezilla beim Verbindungsaufbau mit der Fritzbox über die Schulter geschaut:

Code:
Status:	Connecting to 192.168.179.2:21...
Status:	Connection established, waiting for welcome message...
Response:	220 FRITZ!BoxFonWLAN7320(UI) FTP server ready.
Command:	USER anonymous
Response:	230 User @SkipAuthFromHomenetwork logged in.
Command:	SYST
Response:	215 UNIX Type: L8 Version: Linux 2.6.32.60
Command:	FEAT
Response:	211- Extensions supported:
Response:	 UTF8
Response:	 MDTM
Response:	 SIZE
Response:	 AUTH TLS
Response:	 PBSZ
Response:	 PROT
Response:	211 end
Command:	OPTS UTF8 ON
Response:	200 UTF8 ON
Status:	Connected
Status:	Retrieving directory listing...
Command:	PWD
Response:	257 "/" is current directory.
Command:	TYPE I
Response:	200 Type set to I.
Command:	PASV
Response:	227 Entering Passive Mode (192,168,179,2,178,38)
Command:	LIST
Response:	150 Opening BINARY mode data connection for '/bin/ls -lgA'.
Response:	226 Transfer complete.
Status:	Directory listing successful
Leider ist das Connect-Command (OPEN?) nicht zu sehen. Wie startet Filezilla den FTP-Dämonen? Während der Filezilla-Session ist der nämlich aktiv, vorher nicht und auch nachher nicht mehr
Code:
# ps | grep ftp
 2510 root      1240 S    sh /bin/inetdftp
 2520 boxusr10  2648 S    /sbin/ftpd -s -q -t 120 -m 20 -h FRITZ!BoxFonWLAN732
 2522 root      1228 S    grep ftp
#
Für mich als Linux-Lernendem ein wenig verwirrend...
 
Zuletzt bearbeitet:
ftpget

Der Artikel „Ftpget“ existiert in der deutschsprachigen Wikipedia nicht.
Ähnlicher Begriff: forget :-)

ftpget -u koyaanisqatsi -p secret -v fritz.box .profile .profile
@ koyaanisqatsi:
Kannst du mir bitte noch mal helfen? Wie kann ich mit ftpget ganze Verzeichnisse kopieren?

Wieso kann ich keine normalen FTP-Commands verwenden, so wie Filezilla das macht? Mit welchem Trick startet Filezilla den FTP-Dämonen?

Gruß,
Telefonicus
 
Moin

Klar wird dir geholfen.

In der Wikipädia steht aber die busybox. ;)
/bin/busybox
Code:
BusyBox v1.19.3 (2012-08-07 18:33:02 CEST) multi-call binary.
Copyright (C) 1998-2011 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.

Usage: busybox [function] [arguments]...
   or: busybox --list[-full]
   or: function [arguments]...

        BusyBox is a multi-call binary that combines many common Unix
        utilities into a single executable.  Most people will create a
        link to busybox for each function they wish to use and BusyBox
        will act like whatever it was invoked as.

Currently defined functions:
[, [[, arp, arping, ash, basename, brctl, bunzip2, bzcat, bzip2, cat, chgrp, chmod,
chown, chroot, cmp, cp, cut, date, dd, df, dirname, dmesg, dnsdomainname, du, echo,
egrep, env, ether-wake, expr, false, fgconsole, fgrep, find, flock, free, [color="red"]ftpget,
ftpput[/color], getopt, grep, groups, gunzip, gzip, halt, hostname, id, ifconfig, ifdown,
ifup, inetd, init, insmod, iostat, ip, ipaddr, iplink, iproute, iprule, iptunnel,
kill, killall, killall5, ln, login, logname, ls, lsmod, md5sum, mkdir, mkfifo,
mknod, mkswap, modprobe, more, mount, mpstat, mv, nbd-client, nc, netstat, nice,
nohup, nslookup, passwd, pidof, ping, ping6, pivot_root, pmap, poweroff, printenv,
printf, ps, pstree, pwd, pwdx, readlink, realpath, reboot, renice, reset, rm, rmdir,
rmmod, route, sed, seq, setconsole, setserial, sh, sleep, smemcap, sort, stat, stty,
swapoff, swapon, switch_root, sync, sysctl, tail, tar, tee, telnetd, test, tftp,
time, top, touch, tr, traceroute, true, tty, ubimkvol, ubirmvol, ubirsvol,
ubiupdatevol, umount, uname, uniq, unxz, unzip, uptime, vi, wc, [color="red"]wget[/color], whois, xargs,
xz, xzcat, zcat
/bin/busybox ftpget -?
Code:
BusyBox v1.19.3 (2012-08-07 18:33:02 CEST) multi-call binary.

Usage: ftpget [OPTIONS] HOST [LOCAL_FILE] REMOTE_FILE

Retrieve a remote file via FTP

-c,--continue   Continue previous transfer
-v,--verbose    Verbose
-u,--username   Username
-p,--password   Password
-P,--port       Port number

Ganze Verzeichnisse:
Mit einem tar Archiv würd ich das machen, auf der Gegenseite wirds dann entpackt.
Denn die Verzeichnisstruktur inklusive Dateien wird sozusagen mitkopiert.
Code:
/bin/busybox tar
BusyBox v1.19.3 (2012-08-07 18:33:02 CEST) multi-call binary.

Usage: tar -[cxthvO] [-X FILE] [-T FILE] [-f TARFILE] [-C DIR] [FILE]...

Create, extract, or list files from a tar file

Operation:
c       Create
x       Extract
t       List
f       Name of TARFILE ('-' for stdin/out)
C       Change to DIR before operation
v       Verbose
O       Extract to stdout
h       Follow symlinks
exclude File to exclude
X       File with names to exclude
T       File with names to include
"Mein" busybox tar kann auch komprimieren...
Code:
BusyBox v1.21.1 (2013-07-08 10:56:01 CDT) multi-call binary.

Usage: tar -[cxtzJjahmvO] [-X FILE] [-T FILE] [-f TARFILE] [-C DIR] [FILE]...

Create, extract, or list files from a tar file

Operation:
c       Create
x       Extract
t       List
f       Name of TARFILE ('-' for stdin/out)
C       Change to DIR before operation
v       Verbose
z       (De)compress using gzip
J       (De)compress using xz
j       (De)compress using bzip2
a       (De)compress using lzma
O       Extract to stdout
h       Follow symlinks
m       Don't restore mtime
exclude File to exclude
X       File with names to exclude
T       File with names to include
 
Zuletzt bearbeitet:
Kostenlos!

Statistik des Forums

Themen
248,872
Beiträge
2,303,451
Mitglieder
378,532
Neuestes Mitglied
Nik320