Topic "SCC and SCP issue on windows client"

Author Message
DemiGodz
[View user's profile]

Joined: 2012-08-06
Posts: 1
Location: Philippines
Hi, I'm a new member here and I just want to ask some assistance if the problem or issue that I encounter is on scp. I made a scc-srv for windows client. On my UAT environment here's the two sample

First Testing:

upon uploading to the server using this command;

pscp -v -v -i id_dsa.ppk scc.pl root@h02570c69:

Its accepted by the server using public key..

Result:

C:\Program Files\SCC\bin>pscp -v -v -i id_dsa.ppk scc.pl root@h02570c69:
Server version: SSH-2.0-OpenSSH_5.5p1 Debian-6+squeeze2
We claim version: SSH-2.0-PuTTY_Release_0.58
Using SSH protocol version 2
Doing Diffie-Hellman group exchange
Doing Diffie-Hellman key exchange
Host key fingerprint is:
ssh-rsa 2048 92:1c:43:72:e9:88:2b:be:f1:ca:c7:b7:29:c5:60:c4
Initialised AES-256 client->server encryption
Initialised HMAC-SHA1 client->server MAC algorithm
Initialised AES-256 server->client encryption
Initialised HMAC-SHA1 server->client MAC algorithm
Using username "root".
Reading private key file "id_dsa.ppk"
Pageant is running. Requesting keys.
Pageant has 0 SSH-2 keys
Offered public key
Offer of public key accepted
Authenticating with public key "rsa-key"
Access granted
Opened channel for session
Started a shell/command
Using SFTP
Connected to h02570c69

Sending file scc.pl, size=18990
scc.pl | 18 kB | 18.5 kB/s | ETA: 00:00:00 | 100%
Sent EOF message
Server sent command exit status 0
All channels closed. Disconnecting
Server closed network connection

C:\Program Files\SCC\bin>

---------------------------------------------------------------------------------------
Second Testing:

upon actual testing using this command;

perl scc.pl --prog scp --pki id_dsa.ppk --dest root@h02570c69:/var/opt/scc-srv/data/transfer/cp

its always using a root as the username and sending a wrong password even though i didn't type and root password just sending a wrong password for the root that causin access denied. I used also the same public key that I used on the first testing.

Also, I use --passwd as the option for scp but its not asking for the root password its always sending a wrong password. Is it possible to set the right password that I use on my server? or where I can change the root password sending by the script. I tried to edit the scc.pl file but there's a comment that empty password is an empty line? where I can set the correct password for my root account on the server?

# Transfer the data-file.
open LOGIN,">ftplogin";
print LOGIN "user $user\n";
print LOGIN "$passwd\n"; # Empty password is an empty line.
print LOGIN "binary\n";
print LOGIN "cd \"$rdir\"\n";
print LOGIN "send \"$pack_file\"\n";
print LOGIN "quit\n";
close LOGIN;



C:\Program Files\SCC\bin>perl scc.pl --prog scp --passwd t3sts3rv3r --dest root@h02570c69:/var/opt/scc-srv/data/transfer/cp
Processing: ho10b94
Server version: SSH-2.0-OpenSSH_5.5p1 Debian-6+squeeze2
We claim version: SSH-2.0-PuTTY_Release_0.58
Using SSH protocol version 2
Doing Diffie-Hellman group exchange
Doing Diffie-Hellman key exchange
Host key fingerprint is:
ssh-rsa 2048 92:1c:43:72:e9:88:2b:be:f1:ca:c7:b7:29:c5:60:c4
Initialised AES-256 client->server encryption
Initialised HMAC-SHA1 client->server MAC algorithm
Initialised AES-256 server->client encryption
Initialised HMAC-SHA1 server->client MAC algorithm
Using username "root".
Pageant is running. Requesting keys.
Pageant has 0 SSH-2 keys
Sent password
Access denied
Access denied
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Sorry, this is not PuTTY/pscp support forum.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License