Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

(SOLVED)cannot scp any files to debian server

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
sw2wolf
Posts: 29
Joined: 2012-10-13 00:29

(SOLVED)cannot scp any files to debian server

#1 Post by sw2wolf »

Code: Select all

#uname -a
Linux debian 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 GNU/Linux

#/etc/init.d/ssh status
● ssh.service - OpenBSD Secure Shell server
   Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2017-11-29 19:25:17 EST; 2h 9min ago
 Main PID: 1531 (sshd)
   CGroup: /system.slice/ssh.service
           └─1531 /usr/sbin/sshd -D

Nov 29 19:27:04 debian sshd[1560]: Accepted password for eaglez from 192.168.1.2 port 1066 ssh2
Nov 29 19:27:04 debian sshd[1560]: pam_unix(sshd:session): session opened for user eaglez by (uid=0)
Nov 29 19:30:52 debian sshd[1597]: Accepted password for eaglez from 192.168.1.2 port 1148 ssh2
Nov 29 19:30:52 debian sshd[1597]: pam_unix(sshd:session): session opened for user eaglez by (uid=0)
Nov 29 21:21:02 debian sshd[1900]: Connection closed by ::1 port 37648 [preauth]
Nov 29 21:21:35 debian sshd[1904]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=::1  user=eaglez
Nov 29 21:21:37 debian sshd[1904]: Failed password for eaglez from ::1 port 37650 ssh2
Nov 29 21:21:38 debian sshd[1904]: Connection closed by ::1 port 37650 [preauth]
Nov 29 21:22:01 debian sshd[1912]: Accepted password for eaglez from ::1 port 37652 ssh2
Nov 29 21:22:01 debian sshd[1912]: pam_unix(sshd:session): session opened for user eaglez by (uid=0)
The debian is running as a guest of virtualbox. So far so good, but SmarTTY running on Wndows cannot scp any files to it without any messages. BTW, there is a scp menu in SmarTTY.

Regards!
Last edited by sw2wolf on 2017-12-01 00:24, edited 2 times in total.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: cannot scp any files to debian server

#2 Post by GarryRicketson »

The debian is running as a guest of virtualbox.
And the host OS is ?
Without a example of exactly how you are typing the 'scp' command it is
hard to guess why it is not working, ;
Example : (this is the command I used, and it worked, to transfer a file named "scp-output.txt " from
Debian on a VM , to the host. and my home dir /home/garry )

Code: Select all

garry@debian:~$ scp scp-output.txt garry@192.168.42.207:/home/garry/
garry@192.168.42.207's password: 
scp-output.txt          100%    180    0.2KB/s   00:00    
garry@debian:~$  
There are more examples on using the command here:
http://www.hypexr.org/linux_scp_help.php
Also :

Code: Select all

 man scp
SYNOPSIS
scp [-346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
[-l limit] [-o ssh_option] [-P port] [-S program]
[[user@]host1:]file1 ... [[user@]host2:]file2
Not sure about "smartTTY", never heard of it, I just type the command in at the prompt, as needed. If I am not sure, a quick search to find a example of the correct syntax or SYNOPSIS
============= another example===
This uses 'scp' to copy the images from the PC to the server:

Code: Select all

$ scp *.JPG myusername@serverIP:/path/to/destination/directory/images/
myusername@serverIP's password: 
SAM_1945.JPG                                           100%  317KB 157.4KB/s   00:02    
SAM_1946.JPG                                           100%  316KB 314.3KB/s   00:01    
SAM_1947.JPG                                           100%  319KB 327.7KB/s   00:00    
SAM_1948.JPG                                           100%  318KB 352.4KB/s   00:00    
SAM_1949.JPG                                           100%  316KB 331.4KB/s   00:00    
a-bryan.JPG                                            100%  316KB 333.8KB/s   00:00    
a-george.JPG                                           100%  317KB 354.5KB/s   00:00    
a-panchito.JPG                                         100%  311KB 309.1KB/s   00:01    
b-bryan.JPG                                            100%  313KB 311.0KB/s   00:01    
bryan-11-2017.JPG                                      100%  320KB 159.1KB/s   00:02    
bryan-a-11-2017.JPG                                    100%  313KB 312.2KB/s   00:01    
c-bryan.JPG                                            100%  316KB 315.2KB/s   00:01    
mickyandmini-innest.JPG                                100%  319KB 318.4KB/s   00:01    
mini-in-nest.JPG                                       100%  316KB 314.1KB/s   00:01    
$ 
 
==== edited ====
I did a search to see what smarTTY is,Key words: ""what is smarTTY""
Sorry, I can not help on this, but that
explains why I had never heard of it.
Download. You can download the latest version below. Download. System Requirements. Microsoft Windows 8/7/2008/Vista/2003/XP. Installation Instructions.

sw2wolf
Posts: 29
Joined: 2012-10-13 00:29

Re: cannot scp any files to debian server

#3 Post by sw2wolf »

thanks for your quick answer ! As you suggested i downloaded a scp.exe and use it to upload file. I works as a charm. Maybe my problem is due to SmarTTY's setup.

Post Reply