Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: SCC and SCP issue on windows client

Sorry, this is not PuTTY/pscp support forum.
DemiGodz

SCC and SCP issue on windows client

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