I generated a key for use with SSH (Subversion) on my Unix server, and I need to download the key.
I tried to use an FTP program but the folders are hidden i.e. /.ssh/
Can someone download them while in my putty/telnet session?
|
feedback
|
This question came from our site for professional and enthusiast programmers.
|
You can use SCP or SFTP for transferring files over SSH. But you should be able to do what you need in your ftp client. Look in the client's settings for where you can set the list command, and append "-ah" to the end of it. Your ftp client might even have a setting to display hidden files | |||
|
feedback
|
|
| |||||||||||||||
feedback
|
|
I had similar problem, I used the copy feature in putty - just select (hilites text) in putty window and you can paste directly into Windows app. This is ok for key files since they will fit in one screen. If you have a larger amount of text I've resorted to just mailing the file I need to myself | |||
|
feedback
|
|
Is there something preventing you from copying them to a location from which you can FTP them? | |||
|
feedback
|
|
Best to use But the answer to the question as written is: in the bad-old-days, we used | |||
|
feedback
|
|
I'm assuming since you're using PuTTY, that you're probably running from Windows, and you're connecting over SSH, not Telnet (since you talked about generating an SSH key for SVN). If so, you might want to look into WinSCP, instead of using FTP to access your data on the remote system. (SCP/SFTP adds in the inherent security of SSH, whereas FTP passes your username and password "in the clear" to the remote system). It's a graphical client that is built on top of the PuTTY source. | |||
|
feedback
|
|
I like the ZModem suggestion, but I'm surprised nobody has suggested uuencode yet, which shouldn't require a different SSH client -- assuming most terminal packages can simply log the terminal output to a file. Even if it can't, short enough files fit on screen and can be copy/pasted to a Notepad window. So, on the UNIX side, uuencode the binary file you want to send, capture the terminal's text output of that uuencoding to a text file in Windows, and then uudecode that text file on the Windows side to reconstitute the original binary file. Very primitive, but it works like a charm. See this Wikipedia article on Uuencoding. I trust you can find uuencode/uudecode utilities as part of the excellent Cygwin project. | |||
feedback
|
|
For a SSH key specifically, you can probably just make the terminal window larger, For larger, or binary files, look into | |||
|
feedback
|
|
You're using Putty, which is basically 30 year old technology. Back in those days it was too difficult to add multitasking to user level software, so the answer is "no". You'll need to start another program, scp, etc. and use it to transfer the files. If both sides, client and remote system, are unix, you can use ~ followed by ctl-Z (no space or return after the tilde) and that will suspend your putty session and then you can start using scp, or whatever, to transfer the file. After that's done then use the unix fg command to reconnect to your suspended, background putty. | |||||
feedback
|
sshis not the same astelnet. Either fix the title or the tags. Second, most FTP clients have a "show hidden files" option. (FTP is too insecure to be an answer though.) – grawity Jul 28 '09 at 6:52