I tried Hyperterminal for transferring the data from a linux based
black box device to the pc by using the command lsz.
Now i would like to use PUTTY. How can I set the destination for receiving file/data?
Thank you!
You need an scp client. Putty is not one. You can use WinSCP or PSCP.
Related
I have multiply computers in my network which i need to automate some script. the only port can be used for that is rdp (3389), and I need to find a way to run commands over thid rdp port, without the GUI stuff.
what i am looking for is something like winRM, where i can enter remote session in powershell/cmd.
note: I cant use winRM/smb/rpc for that task. only rdp.
and if it won't disconnect the user logged in to the computer it will be even better...
so is something like this possible?
thanks!
I am working recently on building Hadoop environment on windows7 OS. However, I got stuck in SSH configuration which blocks all the remaining work for Hadoop. I believe it's nothing to do with Hadoop, so any one familiar with SSH can do me a great favor.
Here's the thing, I'm trying to install SSH service for two computers so that any one can communicate with the other. I have successfully installed SSH for my PC, which is win7-x64, through cygwin. However, when I repeated it on the other computer, which is a server with win7-x86, SSH server failed, while the client can work, I get totally confused.
For my PC, I installed cygwin to use SSH service. ssh localhost works fine. And after generating ssh keys and appending it to authorized_keys, I managed to log in to my PC without password.
I copied the cygwin folder from my PC to the server, which is not connected to the Internet thus cygwin can't be directly installed on it. ssh localhost turned out okay at the first. But when I attemptted to log in without password by generating ssh keys and appending to authorized_keys, I got
Connection to localhost closed by remote host
Connection to localhost closed.
What's more, I copied the public key of the server to my PC and appended to authorized_keys file. I managed to log in to PC from the server without password.
On the other hand, the SSH connection from PC to server failed no matter whether with or without password. I got the same failure:
Connection closed by 192.168.0.52
where 192.168.0.52 is the ip address of the server.
What makes me more confused is when I connected to server from PC using putty rather than ssh command, I could log in to the server, with password.
In conclusion, I hope it would make the question more clearer with this graph:
ssh connection graph
I hope any one can help me to figure out what's wrong and how to fix it. Thanks a lot!
After trying for several centries, I finally found what's happening. When I built sshd service on the server, I didn't create a privileged account('cyg_server' by default), which I did on my PC but I forgot. Instead, I used current account for logging. Yet, the account , even the administrator, on windows doesn't have all the authorities as root on Linux does. Considering that, Cygwin considerately creates a privileged account named 'cyg_server', we just leave it and log in using current account. Everything is okay!
Again, f**k windows(So why would I have to do that on windows. Well, if I could, I would)
I have FTP server on Amazon EC2 which I can access by giving this URL: ftp.websitename.com:4522
after that username and password to accessing the files from this location.
Now I want to convert into secure FTP like if I will give sftp.websitename.com:4522 then it will ask me for username and password and allow me to login into the application.
First of all is this possible?
I tried below instructions for installing vsftd1 vsftd2 but didn't help me.
after doing the changes into this two link I tried to login through WinSCP and selected file protocol as SFTP and typed ftp.websitename.com, in port number 4522 and given username and password but didn't allowed me to log in.
edit 1 :
i have my amazon ec2 instance in centos 64bit.
someone else set-up the ftp connection and now i am taking forward from that point,i will get all the details and will try to modify my question in more specific way.
You didn't specify, what OS are you running. But from a reference to vsftpd, I assume some *nix flavor. You didn't specify, what FTP server you have running, and how did you set it up. Your question is pretty vague. But I'll try to give some hints.
The vsftpd is an FTP server only. It does not support the SFTP. It supports the FTPS (FTP over TLS) though. Do not get confused by its name. While the vsftpd stands for "very secure FTP daemon", it just means, it aims to implement FTP securely, not that it implements the SFTP".
Note that virtually all *nix servers come with an SSH/SFTP server built-in (OpenSSH). It runs on port 22.
For instructions how to connect to the EC2 SFTP server with WinSCP, see (my) guide:
Connecting Securely to Amazon EC2 Server with SFTP.
Also make sure you understand the difference between the SFTP and the FTPS.
I have set up a ssh server on my desktop through Cygwin. I can access this remotely through putty. However, should I be able to type ftp://ip address/ code here into a browser and be able to access it. I cant do this at moment so have I configured it wrong.
Never done this before.
To access via ftp protocol like you mention you will need to enable ftpd on your server. SSH access is different to FTP and won't just "work"
Edit:
More info here Cygwin Manaual
There are 2 machines on a network on which GUI is not installed to save the memory. Transfer a file from 1 such machine to another similar machine.
Possible methods I think could be
1. If we can the other computer on the network, we can put the items into a "shared" folder (or making an existing one "shared').
2. Using the ftp protocol on the command line and connecting to one of the machines acting as ftp server and downloading files from that using command 'get' to download the file
3. Create a TCP connection across the two machines. One machine which is having the file will read it and write it to the socket and another one will read it from the socket.
Could there be more solutions for this?
The usual solution is to use SCP to transfer files using a SSH connection.