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
Related
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 7 years ago.
Improve this question
This may seem like a silly question, and I think already know the answer, but I haven't been able to confirm it yet.
When using PuTTY to establish an SSH connection to another machine, does the target machine have to have PuTTY installed on it too?
My assumption is that the SSH connection is independent of PuTTY, as PuTTY is just the utility that is being used to establish that kind of connection, and thus it is not required to be installed on the target machine.
Is this correct?
Short answer: no.
PuTTY doesn't have to be installed on the remote machine, but something does. As a comparison, your web browser (Firefox, Chrome, etc) is an HTTP client which talks to an HTTP server (Apache, Nginx, etc) on Stack Overflow's server. In the same way, PuTTY is an SSH client on your Windows machine which talks to an SSH server somewhere else.
If you're connecting to a Linux/Unix based system, you don't really have to think about that, because the SSH server software is installed and set up by default, but if it wasn't there, there's nothing PuTTY can talk to. If the remote computer is running Windows, it is unlikely to have an SSH server running on it unless somebody has specifically set something up - although I read somewhere that the PowerShell team are working on adding one.
The answer is no. Putty is not required on the target machine.
You are correct; PuTTY is to SSH as FileZilla is to FTP: just a utility.
The target machine doesn't need PuTTY.
As you think : Putty is just a tool. If you want to use SSH just check that the target has SSH enabled.
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 9 years ago.
Improve this question
I have VMware Fusion 5 installed on my Mac, and have software installed on the Windows partition, that for various reasons, I would like to use via the Mac OSX Terminal rather than going through the VMware Fusion GUI of logging into my Windows VM and running command prompt and then running the software. I would prefer it if Terminal could access the windows command prompt of the vm machine, so that I can run the software from my Mac directly. I am happy to have them/would expect the Mac and Windows machines to be running side by side simultaneously.
Is this possible? I.e. can the Mac OSX Terminal access the VM Windows partition command prompt directly? And if so, how would one do this?
I had considered ssh but that seemed long-winded sending data backwards and forwards via the internet given that it is on a local machine and considered that there must be another/smarter alternative...also wasn't really sure it would work ssh'ing into from a Mac to Windows machine...
p.s. Sorry if SO isn't quite the right forum, and that there isn't quite a reproducible example, but have tried to explain the situation carefully to allow the community to help if possible. But if there is a better way to get a solution to my problem by either migrating or suggesting edits to the question that will make it a better question I would be more than happy to do so.
vmrun is the function that needs to be use used. I found it after a bit more searching...so the following will pretty much do the job...
/Applications/VMware\ Fusion.app/Contents/Library/vmrun -T fusion -gu <user\ name> -gp <password> runProgramInGuest /Users/<hostUserName>/Library/Application\ Support/VMware\ Fusion/Virtual\ Machines/Boot\ Camp/Boot\ Camp.vmwarevm/Boot\ Camp.vmx -interactive -noWait -activeWindow C:\\Windows\\Notepad.exe C:\\testing.txt
This link is quite useful http://www.vmware.com/pdf/vix162_vmrun_command.pdf
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.
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 just downloaded Cygwin for Windows 7. I want to install an OpenSSH SSH daemon, and after running "ssh-host-config", I tried starting the service by running
$net start sshd
System error 1069 has occurred.
The service did not start due to a logon failure.
I changed the password for user "sshd" to have upper/lower case letters and numbers. But I still get this error. Any help or additional troubleshooting advice is appreciated, - Dave
I had the same issue. If you had previously tried to install openssh you need to remove it first.I followed this these two links for removing openssh:
http://pigtail.net/LRP/printsrv/vista-cygwin.txt
http://www.kgx.net.nz/2010/03/cygwin-sshd-and-windows-7/
They are mostly the same although the first link is based on the second one and the second one has some extra information about installing privileges for users.
After that you can try to reinstall openssh it should work.
It could be that your password for the cyg_server user has expired. This is usually the case with Windows Server versions.
Run lusrmgr.svc and change the password for it. You can also disable the Password never expires by checking the user's properties.
You should be able to verify the password did expire by checking the windows events.
"1069 Error Code is caused in one way or another by misconfigured system files in your windows operating system."
You need to restore your OS to a previous state or download the repair tool. I have the same issue for the same reason.
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
I think this is more a Mac networking configuration issue than anything else, but am not sure.
I have Subversion set up on my Windows Home Server machine (similar to this: http://www.hanselman.com/blog/RunningASubversionServerOffYourWindowsHomeServer.aspx). This setup has been working for me for months, using Windows clients.
Now I'm trying to add a Mac client, and it can't resolve the network name of my WHS server. If I open a terminal window on the mac, and attempt to ping or use nslookup, I get an error that it can't find the server. On the PC side, I can ping, but nslookup doesn't resolve the name, so I'm assuming that PC's ping is resolving the name as a NetBios name.
I've found a number of articles online that explain how to set up default suffixes based on Windows domains, but the Windows Home Server doesn't establish a domain by default. (It's in workgroup mode.)
Anyone have any suggestions or pointers?
The quick and easy way to get this working would be to add an entry to your host file on the MAC. You can find the file in /etc/hosts
Edit the file and add an entry at the end as follows:
<ip address> <hostname>
example:
69.59.196.211 www.stackoverflow.com
That is the way that I would go, and they mention using the host file in the article you posted. More info on editing the hostfile of different machines can be found here:
http://practice.chatserve.com/hosts.html