I want to create a directory in my remote system using python script or by socket programming. I have remote system's Username, password and IP address. I am able to do this in my local machine but not in remote. Please help!
How to create directory in remote system using python script
639 Views Asked by Kavita Singh AtThere are 2 best solutions below
anbocode
On
To create a directory on a remote machine, you will have to first connect to it.Telnet and SSH and SSH is used to connect to remote machines. Obviously TELNET or SSH service should be running on the remote machine, otherwise you won't be able to connect.Since in case of Telnet,data is transfered in plain text, it's better to use SSH protocol.
Once connected to the remote machine using SSH, you will be able to execute commands on the remote machine.
Now since you want to do everything in Python, you will have to write a complete SSH client in Python. Which is greate for learning, because you will learn about socket programming and cryptography.
If you are in a hurry, you can use a good SSH library.
If you are getting network connection error, please check whether SSH is installed in the remote machine or not. If yes, then check firewall settings.
Related Questions in PYTHON
- new thread blocks main thread
- Extracting viewCount & SubscriberCount from YouTube API V3 for a given channel, where channelID does not equal userID
- Display images on Django Template Site
- Difference between list() and dict() with generators
- How can I serialize a numpy array while preserving matrix dimensions?
- Protractor did not run properly when using browser.wait, msg: "Wait timed out after XXXms"
- Why is my program adding int as string (4+7 = 47)?
- store numpy array in mysql
- how to omit the less frequent words from a dictionary in python?
- Update a text file with ( new words+ \n ) after the words is appended into a list
- python how to write list of lists to file
- Removing URL features from tokens in NLTK
- Optimizing for Social Leaderboards
- Python : Get size of string in bytes
- What is the code of the sorted function?
Related Questions in DIRECTORY
- Optimum directory structure for large number of files to display on a page
- install a R package from directory
- Are stringified MongoDB ObjectID's safe as folder names?
- Generate TCPDF output to a shared drive folder
- Get number of files in various subdirectories relative to the current page - ColdFusion
- Ruby on Windows XP: How to change directory of SSL certificates
- Google Drive API VB.NET Parent Folder of a Folder
- Count files in a directory while excluding others by directory and subdirectories using PHP
- Media files end up in in a pycharm subdirectory when uploading
- Remove part of filename of files that are in different folders
- Group items based on x number characters of basename
- Android Studio missing drawable Folder
- Updating folder structure with Mac Terminal
- Matlab error in file path for a sound
- Rails: Include Javascript_include_tag outside default folders
Related Questions in REMOTE-ACCESS
- Can't connect to mysql database remotely ERROR 2003
- SSH remote command
- How to register an installation remotely?
- Refused connection to database in production but not local
- The fastest way to check whether remote computer is offline
- Can I access my phone images from an other mobile on remote?
- How to remotely install an android application on a android phone connected to the same network?
- Do i need to set up "high availablility" with the connection broker when i only have one Remote Terminal
- Use Photoshop actions on the server
- Using Powershell to verify registry entries remotely
- Scripting: reading file from remote machine and store in dir variable
- How I can execute extern Module Commands on a remote Computer in Powershell without install the Module?
- Connect Remotely to Centos installed on Vmware
- Run script file on remote server
- Active Directory Access to remote SQL Server
Related Questions in NETWORKCREDENTIALS
- Prompt for credentials in ASP.NET / C# page, pass to PowerShell
- How to resolve this error "ERROR_BAD_USERNAME" in WNetAddConnection2?
- Exception in "ValidateCredentials" "The server cannot handle directory requests."
- Verifying username and password in C#
- check connection sharing network folder using username and password
- c# NetworkCredential and System.Net.WebRequest store crypted in code
- How to pass credentials from one web service to another?
- HttpWebRequest Credentials stored/cached automatically?
- networkcredential without password
- NetworkCredential Error: The user name or password is incorrect - Copy files from one network folder to another in vb.net
- Parsing a network path with credentials into base class library types
- How to set explicit NetworkCredential for authenticating to a workgroup computer instead of domain
- wcf NetworkCredential with empty user name and password
- How to create directory in remote system using python script
- Print Default Credentials
Related Questions in AZURE-PIPELINE-PYTHON-SCRIPT-TASK
- How to create directory in remote system using python script
- Access variables from Variable Groups inside Python script task in Azure DevOps Yaml pipeline
- How to find collar number in python
- Python - error on azure python script task - ##[error]C:\ProgramData\Anaconda3\python.exe failed with return code: 0
- How to access secret variable within the python script
- Is the logout command blocked via pythons os.system command?
- Writing Python validation script for different data files from different data sources on premises for different rules
- how to Run .py file
- Run a Python pgm for multiple PDF
- how to change azure devops script execution path
- Trigger a python script in power BI on a button click (input data for the python script is inside the power bi and the output should be loaded back)
- Scripting Azure authentication with Terraform on Linux using a token
- Getting error on pywinos for executing command
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Download Putty then connect to remote system) and in terminal write
mkdir foldername