[ubuntu-it] Trasferimento file con SSH

taddei a merops.it taddei a merops.it
Gio 18 Apr 2013 12:32:32 UTC


Intanto grazie per la risposta. Purtroppo potrò essere
fisicamente sull'apparecchio saltuariamente.

Ho cercato il processo sshd con ps ed effettivamente non
c'è. Ma mi sembra di aver capito qui 
http://wiki.openwrt.org/inbox/replacingdropbearbyopensshserver
che usa dropbear al posto di sshd. In effetti in /etc/init.d
c'è un processo con quel nome. Credo che comunque sia
qualcosa di simile. Questa è la risposta quando mi
collego:

test a dria:~$ ssh root a 192.168.2.1
root a 192.168.2.1's password: 


BusyBox v1.15.3 (2011-11-24 04:30:44 CET) built-in shell
(ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 Backfire (10.03.1, r29592) ------------------------
  * 1/3 shot Kahlua    In a shot glass, layer Kahlua 
  * 1/3 shot Bailey's  on the bottom, then Bailey's, 
  * 1/3 shot Vodka     then Vodka.
 ---------------------------------------------------
root a OpenWrt:~#

Questo è l'elenco dei processi:
 274 root      1384 S    init       
  302 root      1388 S    syslogd -C16 
  304 root      1368 S    klogd 
  318 root       780 S    /sbin/hotplug2 --override
--persistent --set-worker /
  432 root         0 SW   [events_nrt]
  446 root         0 SW   [cfg80211]
  555 root         0 SW   [phy0]
  850 root         0 SW   [irq/5-b43]
  884 root      1504 S    hostapd -P /var/run/wifi-phy0.pid
-B /var/run/hostapd
  931 root      1388 S    udhcpc -t 0 -i eth0.1 -b -p
/var/run/dhcp-eth0.1.pid 
 1225 root      1132 S    /usr/sbin/dropbear -P
/var/run/dropbear.1.pid -p 22 
 1234 root      1008 S    /usr/sbin/uhttpd -f -h /www -r
OpenWrt -x /cgi-bin -t
 1259 nobody     916 S    /usr/sbin/dnsmasq -K -D -y -Z -b
-E -s lan -S /lan/ -
 1287 root      1368 S    watchdog -t 5 /dev/watchdog 
 1291 root      1380 S    /usr/sbin/ntpd -n -p
0.openwrt.pool.ntp.org -p 1.open
 1327 root      1204 S    /usr/sbin/dropbear -P
/var/run/dropbear.1.pid -p 22 


per il comando ho provato anche 
root a OpenWrt:/etc# scp wifidog.conf
test a 192.168.2.229:/home/test/wifidog.txt 


Il portatile da dove lancio ssh è collegato via ethernet
col router e riceve l'indirizzo IP 192.168.2.229





----- Original Message -----
Da : Franco Abitante <franco a franco.abitante.name>
A : ubuntu-it a lists.ubuntu.com
Oggetto : Re: [ubuntu-it] Trasferimento file con SSH
Data : Thu, 18 Apr 2013 00:29:42 +0200

> Il 17/04/2013 23:52, taddei a merops.it ha scritto:
> > Ho la necessità di trasferire un file via SSH. Sto
> > provando con scp (secure copy)
> > con questo comando, ma mi da sempre l'errore:
> >
> > root a OpenWrt:/etc# scp wifidog.conf test a 192.168.2.229:~
> > /usr/bin/dbclient: Exited: Error connecting: Connection
> > refused
> >
> 
> su 192.168.2.229 c'è sshd in esecuzione? è configurato
> correttamente  (porta, utenti, etc)?
> 
> la tilde ~ credo sia sbagliata
> 
> scp ./wifidog.conf test a 192.168.2.229:/usr/bin/dbclient
> 
> 
> -- 
> ubuntu-it mailing list
> ubuntu-it a lists.ubuntu.com
> Opzioni d'iscrizione -
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-it
> http://wiki.ubuntu-it.org/Listiquette



More information about the ubuntu-it mailing list