Results 1 to 7 of 7

Thread: scp denied

  1. #1
    Join Date
    Jul 2012
    Location
    Elmira, NY
    Beans
    284
    Distro
    Ubuntu 14.04 Trusty Tahr

    scp denied

    I am trying to pass a zip over to my server via scp but i keep getting denied. I can ssh in fine via password

    I did this setup
    https://help.ubuntu.com/14.04/server...sh-server.html

    and after this i can ssh in without password

    Code:
    metulburr@ubuntu~$sudoscp-vplugin.zipmetulburr@python-gaming.com:/var/www/html/menu_testExecuting: program /usr/bin/ssh host python-gaming.com, user metulburr, command scp -v -t /var/www/html/menu_test
    OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug1: /etc/ssh/ssh_config line 19: Applying options for *
    debug1: Connecting to python-gaming.com [198.199.80.192] port 22.
    debug1: Connection established.
    debug1: permanently_set_uid: 0/0
    debug1: identity file /root/.ssh/id_rsa type -1
    debug1: identity file /root/.ssh/id_rsa-cert type -1
    debug1: identity file /root/.ssh/id_dsa type -1
    debug1: identity file /root/.ssh/id_dsa-cert type -1
    debug1: identity file /root/.ssh/id_ecdsa type -1
    debug1: identity file /root/.ssh/id_ecdsa-cert type -1
    debug1: identity file /root/.ssh/id_ed25519 type -1
    debug1: identity file /root/.ssh/id_ed25519-cert type -1
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.3
    debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.3
    debug1: match: OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.3 pat OpenSSH_6.6.1* compat 0x04000000
    debug1: SSH2_MSG_KEXINIT sent
    debug1: SSH2_MSG_KEXINIT received
    debug1: kex: server->client aes128-ctr hmac-md5-etm@openssh.com none
    debug1: kex: client->server aes128-ctr hmac-md5-etm@openssh.com none
    debug1: sending SSH2_MSG_KEX_ECDH_INIT
    debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
    debug1: Server host key: ECDSA af:75:e9:f1:49:d0:b6:e2:30:09:59:4c:13:b5:64:b1
    debug1: Host 'python-gaming.com' is known and matches the ECDSA host key.
    debug1: Found key in /root/.ssh/known_hosts:1
    debug1: ssh_ecdsa_verify: signature correct
    debug1: SSH2_MSG_NEWKEYS sent
    debug1: expecting SSH2_MSG_NEWKEYS
    debug1: SSH2_MSG_NEWKEYS received
    debug1: Roaming not allowed by server
    debug1: SSH2_MSG_SERVICE_REQUEST sent
    debug1: SSH2_MSG_SERVICE_ACCEPT received
    debug1: Authentications that can continue: publickey,password
    debug1: Next authentication method: publickey
    debug1: Trying private key: /root/.ssh/id_rsa
    debug1: Trying private key: /root/.ssh/id_dsa
    debug1: Trying private key: /root/.ssh/id_ecdsa
    debug1: Trying private key: /root/.ssh/id_ed25519
    debug1: Next authentication method: password
    metulburr@python-gaming.com's password: 
    debug1: Authentication succeeded (password).
    Authenticated to python-gaming.com ([198.199.80.192]:22).
    debug1: channel 0: new [client-session]
    debug1: Requesting no-more-sessions@openssh.com
    debug1: Entering interactive session.
    debug1: Sending environment.
    debug1: Sending env LANG = en_US.UTF-8
    debug1: Sending command: scp -v -t /var/www/html/menu_test
    Sending file modes: C0640 32048 plugin.zip
    Sink: C0640 32048 plugin.zip
    scp: /var/www/html/menu_test/plugin.zip: Permission denied
    metulburr@ubuntu ~  $ debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
    debug1: channel 0: free: client-session, nchannels 1
    debug1: fd 0 clearing O_NONBLOCK
    debug1: fd 1 clearing O_NONBLOCK
    Transferred: sent 2604, received 2328 bytes, in 0.2 seconds
    Bytes per second: sent 13705.9, received 12253.2 debug1:Exitstatus1
    What else am i missing in order to allow me to scp to my server?
    Last edited by micahpage; October 15th, 2015 at 04:39 PM.

  2. #2
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: scp denied

    Try without sudo so that it uses your account's keys.

  3. #3
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: scp denied

    Also, over on python-gaming.com you will need write permissions to the directory (or file) named /var/www/html/menu_test, if that is where you are writing to.

    If you are the only user then a simple chown will do the job. If you are sharing write access, then you will need to work with group permissions instead.

  4. #4
    Join Date
    Jul 2012
    Location
    Elmira, NY
    Beans
    284
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: scp denied

    Also, over on python-gaming.com you will need write permissions to the directory (or file) named /var/www/html/menu_test, if that is where you are writing to.
    wow i cannot beleive i forgot this step...thanks

  5. #5
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    15,486
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: scp denied

    Code:
    sudoscp-vplugin
    I assume the lack of a space after sudo was just a typo. What happens if you use plain "scp"?
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  6. #6
    Join Date
    Jul 2012
    Location
    Elmira, NY
    Beans
    284
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: scp denied

    i am not sure why, but pasting into code tags here it seems to squish the first line together...and i didnt catch it.

    scp without sudo did not work. I forgot to give permissions to the directory i was writing to. problem solved. thanks.

  7. #7
    Join Date
    Nov 2012
    Location
    Halloween Town
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: scp denied

    Quote Originally Posted by micahpage View Post
    i am not sure why, but pasting into code tags here it seems to squish the first line together...and i didnt catch it.

    scp without sudo did not work. I forgot to give permissions to the directory i was writing to. problem solved. thanks.
    Here's how you use code tags in the forums.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •