CoderSathi
  • Tutorial
    • Java Tutorial
    • Swing Tutorial
    • JDBC Tutorial
    • Java String Tutorial
    • Servlet and JSP Tutorial
  • Mongo DB
  • AWS
  • DevOps
  • Linux
  • Git
Home > How to > How to access MongoDb database from remote machine with authentication?

How to access MongoDb database from remote machine with authentication?

Learn the concepts, implementation details, and practical steps with a clean developer-focused walkthrough.

Yuba Raj Kalathoki
By Yuba Raj Kalathoki
Published: August 31, 2020 ยท 1 min read ยท 0 Comments
Share: X in ๐Ÿ”—
coding coffee

Answer:

You can use the following command to access MongoDb database from remote machine with authentication.

mongo myhost.com -u username -p --authenticationDatabase authenticationDAtabaseName

After executing above command you should prompt to enter the pass.

Related Posts:

  • Pass by Value vs. Pass by Reference in Java
  • Install MongoDB BI Connector on Ubuntu
  • MongoDB useful commands
  • Connect MongoDB Atlas Cluster Using Shell
  • How to Connect Java Application to a Remote Database…
  • MySQL Commands for Developers
Tags:devopsmongodb
Was this article helpful?
โ† Previous ArticleHow to Check MongoDB Database size?
Next Article โ†’How to remove MongoDb service from Ubuntu?

Leave a Comment Cancel reply

You must be logged in to post a comment.

Recent Posts

  • How to Use AWS CloudFront Signed URLs in Spring Boot?
  • How to Fix SSH Agent Forwarding on macOS: The Ultimate Guide for Developers
  • How to Read AWS Secrets Manager in Spring Boot (Step-by-Step)
  • How to Fix “Public Key Retrieval is not allowed” MySQL JDBC Error
  • Complete Guide to JaCoCo: How to Measure Java Code Coverage Accurately
CoderSathi

Your go-to resource for Java, Spring Boot, Microservices, AWS, and modern development tutorials.

Quick Links

  • About
  • Contact

Popular Topics

  • Java
  • Spring Boot
  • AWS
  • DevOps
  • MongoDB
  • Linux
  • Git
  • How to
ยฉ 2026 CoderSathi. All rights reserved. Privacy Policy ยท Sitemap