0

Hello I am trying to connect to a ABCI System User Environment and I cannot perform a scp to save my life. I have tried two approaches; 1) is use unbuntu linux bash command for windows (the app you have to install from the window store). and the second approach is with WinSCP and Putty. I have generated a public key and loaded up on the ABCI system. And I can tunnel into the server and login correctly and view files. But when I try to upload a zip file to the server I get denied access. Can someone help me set up the WinSCP correctly to tunnel into the server?

Here is the information that I have

For the tunnel ssh

local port: 11022
remote host and port: es.abci.local:22
remote port: 22 

For a session

hostname: as.abci.ai

And in putty this is all set up and works perfectly. As I followed this directions https://portal.abci.ai/docs/en/02/ But I still cannot scp a file into my local folder how can I do that? Thank you for any help with this.

Oh and I do know for putty scp I need to use this instead of the typical scp

pscp -scp -P 110022 myFile.zip myusername@localhost:/place to copy to/

I found out how to get the logs from WinSCP These are the log output

2019-05-21 14:06:54.720 Server offered these authentication methods: publickey
. 2019-05-21 14:06:54.720 Offered public key
! 2019-05-21 14:06:54.738 Server refused our key
. 2019-05-21 14:06:54.782 Server refused our key
. 2019-05-21 14:06:54.782 Server offered these authentication methods: publickey
. 2019-05-21 14:06:54.902 [Tunnel] Closing connection.
. 2019-05-21 14:06:54.902 [Tunnel] Sending special code: 12
. 2019-05-21 14:06:54.902 [Tunnel] Sent EOF message
. 2019-05-21 14:06:54.902 Disconnected: No supported authentication methods available (server sent: publickey)
* 2019-05-21 14:06:54.966 (EFatal) Disconnected: No supported authentication methods available (server sent: publickey)
* 2019-05-21 14:06:54.967 Authentication log (see session log for details):
* 2019-05-21 14:06:54.967 Using username "abc10808va".
* 2019-05-21 14:06:54.967 Server refused our key.
* 2019-05-21 14:06:54.967 
* 2019-05-21 14:06:54.967 Authentication failed.
  • 1
    So are you able to update the ZIP file anyhow? – Martin Prikryl May 21 at 5:44
  • 2
    The host you are connecting to is localhost:11022. If you can connect to it over ssh, then scp should work the same.. unless the path you need to save is not writeable by your username. – Darius May 21 at 5:45
  • I am sorry I meant upload. I have been trying to set up Winscp but am a bit lost in what to set. I tried many different combinations. – MNM May 21 at 5:48
  • You still didn't really explain, if you have any reason to believe it should even work. Did you talk to your server administrator? – Martin Prikryl May 21 at 5:55
  • Yes but he wont help set up winscp. He said if I can ssh in then i should scp in, which i know is true so its a issue of how I put in the settings in winscp i think – MNM May 21 at 6:15
0

I figured out the answer for this, I was a lot of trial and error changing the setting on WinSCP I appricate everyone help on this. I will describe how I set up every thing.

  1. Make a pub/private key with putty gen.
  2. Load that up on the ABCI webpage
  3. In WinSCP set up information.
  4. Hostname: es.abc1.local:22 with port number 11022
  5. In advance settings go to Connection->Tunnel
  6. Hostname: as.abci.ai; port number 22; local tunnel port 11022
  7. Add you private key from puttygen

Then you should be all set.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.