ssh azure blob storage

2023-05-04T11:02:00.7033333+00:00

I have an Azure blob account with sftp enabled. I want to transfer files to my azure container from a local servers(url). I am trying to connect to my account thru ssh command. but it throws error as " pty allocation request failed on channel 0 "

I also want to connect to the blob account without password. How to do ??

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
1,689 questions
{count} votes

1 answer

Sort by: Most helpful
  1. deherman-MSFT 27,251 Reputation points Microsoft Employee
    2023-05-05T19:29:38.5133333+00:00

    @Mulagiripattu Rangarajan Sundar Rajan

    The error "pty allocation request failed on channel 0" usually occurs when trying to establish an SSH connection with a server that doesn't support interactive sessions. Since you're using SFTP with Azure Blob Storage, you should use an SFTP client to transfer files instead of the SSH command.

    1. Install an SFTP client if you haven't already.
    2. Use the following command to connect to your Azure Blob Storage account:
    sftp -i <private_key> <username>@<sftp_endpoint>
    
    1. Once connected, you can use SFTP commands like put, get, ls, and cd to transfer files and navigate your Azure Blob Storage account.

    When you add a user you have the option to use password, keypair, or both. Instructions for setting this up can be found in the Configure permissions section here.

    Hope this helps! Let me know if you are still having issues or need anything else.


    If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.

    Thank you for helping to improve Microsoft Q&A! User's image