Using windows ftp command to login with ssh key [closed] - windows

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have google but found that what I want to do is possible using a third-party software, but can anyone answer this question:
I'm trying to ftp to linux server running sftp. I'm tryinh to connect to it automatically using a batch script. I have accomplish this using the command:
ftp -i -s:"Path to a text file containing FTP commands"
This works find however now I need to use a ssh key to authenticate is this possible using this method and no third-party software?
This is a sample of the text file being passed to the ftp command:
open "IP of server"
username
password
mget *
bye

Take a look at this very excellent tutorial on how to set up ssh keys so you do not have to use a password: http://www.linuxproblem.org/art_9.html. That will give you background on the process.
This assumes both client and server are running some flavor of unix (OSX included)!
If they are not (in your case), or if you have a non-standard configuration, then there is a pretty high probability that you will need to use third party software to hold the keys.
Once that is set up, you should use sftp instead of ftp.

Related

not able to open PuTTy key generator [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I am really new to Putty and Puttykey generator as I am trying to setup EC2 on AWS. I have managed to install PuTTy on my Mac, and PuTTy works fine, but every time I click on PuTTykey Generator I see a message (please see the snap attached) and no pop up window. how do I get it to work? I have Mac Mojave.
the reason why you use puttygen is to generate the ssh-key pair especially on windows systems. You don't generally need to use putty key generator on mac since Mac OS has a built-in command-line SSH client known as Terminal.
To use terminal, go to Finder and then click the menus Go -> utilities from the top menu. After that find the terminal which supports SSH connections to remote servers.
You can run ssh-keygen to generate an ssh key pair.
ssh-keygen
reference (how to use ssh-keygen to generate a keypair):
https://www.digitalocean.com/docs/droplets/how-to/add-ssh-keys/create-with-openssh/
I am not sure about the reason why you are trying to use puttygen through.
If you simply like to login to your ec2 instance via ssh (using the keypair from ec2), you can use ssh command as below.
ssh -i `~/Downloads/my.pem` ec2-user#[ip-address]
by the way, The reason why you are seeing an output like the one you shared is, when you run puttygen is, it's a command line utility and it's expecting some mandatory command line arguments to be passed.

Need a script to open ssh connections [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
My entirely new to MAC OS.
I am using MAC Terminal to connect to Linux servers (using SSH)
Is there a way to write a .command file to connect to the Linux servers, just by executing the .bat file from desktop?
Look at ssh client configuration and key-based authentication (man ssh and man ssh_config). You can configure all that so the command reduces to ssh hostname without writing any shellscript code. You can even assign a short name to a host.
For example (in ~/.ssh/config):
host abc
hostname remotehost.domain.tld
identityfile ~/.ssh/abc.dsa
user myuserid
Assuming you've generated and uploaded the corresponding public key, you can connect with the command
ssh abc

Is it possible to have a Windows instance with remote desktop GUI [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have some experience with Amazon's linux instance. But, I need a Windows machine, and I need to manage it with GUI (something like remote desktop or so). Can any body answer me if this is possible and how ?
Yes this is definitely possible, I use it all the time. Just provision a windows instance and then once it is running, right click on it in the EC2 management interface and select "Get Administrator Password".
You will need to specify a private key at launch time, and use that to get the decrypted password.
You can then use any Remote Desktop client to access the machine using this password and the public DNS name.
Windows has Remote Desktop, which allows you to drive through GUI, or else putting on VNC and connect through there.

Copying a file remotely from Ubuntu to Windows 7 [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I am not very familiar with command line Ubuntu (leave alone copying a file remotely) so I apologise if this question is a bit too common.
My setup is a bit unusual so I wasn't able to find much via research online.
I am working on a Win7 machine and I ssh into the Ubuntu (11.10) server via Putty. I tried the following command,
scp textFile.txt user#ipaddress:
The textFile.txt is on the Ubuntu machine and the user is my account on the Win7 machine and ipaddress is the IPv4 address of the Win machine. I even put the -4 option but everytime it keeps saying Connection timed out.
Is there any way for me to copy this file onto my machine?
Both are on the same network.
I would suggest that you get an application called WinSCP installed on your Windows server. This is free and very easy to use.
It is like an FTP application, using your Linux username and password (along with the SSH port). This way, all future copies between these OS'es will be easy.
I hope this help?
You could install samba or FTP to share files.
Using a samba share on the windows machine you could follow this guide
Using FTP you could try this
You may use filezilla. I also encountered the same problem however I found Filezilla as one of the easiest way to transfer the file. Check the image and enter the host id sftp://ipaddress.. Oops i realised that I cannot post an image until i have 10 reputation... :( hence, removing the image. but its easy. Just put the host name as suggested above.
hope this will help

FileZilla client run in command line [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
is it possible to run FileZilla client via command line and be able to set server name, user, password, FTP protocol (e.g. FTPES, SFTP), port number? i looked online and can't seem to be able to find any such command. also, i am using windows 7, i am not sure if that somehow has a smaller set of commands. thanks.
You can use some command-line arguments for FileZilla, but as far as i know, it's principally a GUI FTP client.
Otherwise, Windows have a bundled command line FTP client (FTP.exe)
The Windows Command-Line FTP Client
List of FTP commands for the Microsoft command-line FTP client
You can use ncftpput. ncftpput supports command-line file upload and it has other commands.
ex: ncftpget, ncftpls, and support auto create file folder.

Resources