Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Discussion Type

Product Feedback

Discussion Content

Could anyone please let me know how I can connect using SSH to my repo?

I ask because the SSH and SFTP are beeing rejected on GitHub side (neither my device nor ISP is blocming them) and the docs are focused mainly on the keys and agent.

NOTES:

  1. I don't want to clone, but upload into my repisitory

  2. the project that I want to upload contain folders, who's upload thru GitHub UI is impossible due leak of support for it

  3. I don't have Git nor GitHub CLI on the mobile that contain the project files to upload

You must be logged in to vote

Replies: 3 comments · 4 replies

Comment options

💬 Your Product Feedback Has Been Submitted 🎉

Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users.

Here's what you can expect moving forward ⏩

  • Your input will be carefully reviewed and cataloged by members of our product teams. 
    • Due to the high volume of submissions, we may not always be able to provide individual responses.
    • Rest assured, your feedback will help chart our course for product improvements.
  • Other users may engage with your post, sharing their own perspectives or experiences. 
  • GitHub staff may reach out for further clarification or insight. 
    • We may 'Answer' your discussion if there is a current solution, workaround, or roadmap/changelog post related to the feedback.

Where to look to see what's shipping 👀

  • Read the Changelog for real-time updates on the latest GitHub features, enhancements, and calls for feedback.
  • Explore our Product Roadmap, which details upcoming major releases and initiatives.

What you can do in the meantime 💻

  • Upvote and comment on other user feedback Discussions that resonate with you.
  • Add more information at any point! Useful details include: use cases, relevant labels, desired outcomes, and any accompanying screenshots.

As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities.

Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐

You must be logged in to vote
0 replies
Comment options

Hi @mdziczkowski! If your SSH connection hangs or times out, there’s a good chance that port 22 is blocked by your network, ISP, or firewall.

You can work around this by using SSH over port 443 instead.

Update your SSH config file (~/.ssh/config) with:

Host github.com
  Hostname ssh.github.com
  Port 443
  User git

Then test the connection:

ssh -T git@github.com

If prompted, type yes to accept the host key.

After that, you should be able to clone/push normally using SSH:

git clone git@github.com:USERNAME/REPO.git

GitHub also documents this workaround here:
https://docs.github.com/en/authentication/troubleshooting-ssh/using-ssh-over-the-https-port

You must be logged in to vote
4 replies
@mdziczkowski
Comment options

@zippynx

Hello. SSH isn't blocked on my nor ISP side. It seem that GitHub is rejecting the connections for me 🤔

Note: I don't want to clone, but upload my project (with contain folders that can't be uploaded thru website UI due leak of support for that) is stored on my mobile phone) to the repository

@zippynx
Comment options

Hi @mdziczkowski! Thanks for the clarification that helps narrow things down.

Just to clarify how GitHub's SSH works: GitHub does not provide an interactive SSH shell or SFTP-style file transfer. SSH on GitHub is used strictly as a transport layer for Git operations (such as git push, git fetch, and git clone). Because of that, attempting to open a standard interactive SSH session from a mobile SSH/SFTP client will result in a rejected connection.

If your goal is to upload an existing project from your phone without cloning first, you can use a Git-enabled terminal app (for example Termux on Android) and run the standard Git workflow inside your project folder:

git init
git add .
git commit -m "Initial upload"
git remote add origin git@github.com:USERNAME/REPO.git
git push -u origin main

If you later encounter connection issues such as timeouts or port restrictions, using SSH over port 443 can be a valid workaround. Otherwise, the standard SSH setup should work as expected.

Let me know if this helps!

@mdziczkowski
Comment options

@zippynx

The case is that I'm already using Terminus and attempt thru it to connect and cace rejected connections

@zippynx
Comment options

Hi @mdziczkowski! Ah, that perfectly explains the behavior. Since you are using Terminus (which is primarily a remote SSH/SFTP client), it is almost certainly trying to open a standard interactive shell session.

As mentioned previously, GitHub will immediately reject that type of session by design, even if your SSH key is completely valid. The TCP connection itself succeeds, but the SSH session request gets denied before any Git operations can run.

To upload a project stored locally on your phone, you need a local Git-capable environment rather than a remote SSH client like Terminus.

For Android, an app like Termux works well because it provides a local Linux environment where you can install Git and run normal Git commands directly against your phone storage.

You can also verify the exact rejection stage using verbose SSH logging:

ssh -vT git@github.com

That output will show whether the issue is related to authentication, session negotiation, or simply the unsupported interactive shell request.

So in short: the problem is most likely not your SSH key or ISP, but the fact that Terminus is the wrong type of tool for this specific workflow.

This comment was marked as low quality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussions GitHub Discussions is a collaborative communication feature Product Feedback Share your thoughts and suggestions on GitHub features and improvements source:ui Discussions created via Community GitHub templates
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.