04-04-2015
Retrieve/download SSH key instead of Send/Upload?
Hi,
is it possible to download/retrieve a public SSH key when you are logged in to the remote machine rather than sending the key, for example with ssh-copy-id from your local machine to the remote machine?
I can only ssh into one direction (from the remote machine into the local machine), not the other.
Thanks for any hints.
Best regards,
Gary
10 More Discussions You Might Find Interesting
1. Linux
I am trying to upload a file using SSH .
it gives me error "Encounteted 1 errors during the transfer"
WHere do I see the error ?
why am i getting it ?
thanks
:) (1 Reply)
Discussion started by: upirate
1 Replies
2. UNIX for Dummies Questions & Answers
I couldn't seem to make 'HOME' key work on my remote windows ssh client to a Fedora Core3 server (the home key works perfectly when i'm physically on site.)
To my surprise, using control+V it seems that both my home and insert key send the same escape sequence ^So it must be my windows SSH client... (0 Replies)
Discussion started by: grossgermany
0 Replies
3. Shell Programming and Scripting
Hi,
i was provided with
1. Server IP (Remote)
2. Username and Password (worked when tested basic FTP)
3. Their Public key (GnuPG v1.0.6)
They refuse when i upload using basic FTP and insists for encryption.
I have Solaris 10 and Linux in my environment.
How can i encrypt and upload... (0 Replies)
Discussion started by: prvnrk
0 Replies
4. Linux
hi everybody,
How cud i stop downloading files from FTP and allow uploading files in FTP.
Thanks & reg, (2 Replies)
Discussion started by: utpalsarkar
2 Replies
5. Shell Programming and Scripting
Hi,
I want to use ssh to add a register key on remote ssh server. Since there are space characters in my register key string, it always failed. If there is no space characters in the string, it worked fine. The following is what I have tried. It seems that "ssh" command doesn't care about double... (9 Replies)
Discussion started by: leaftree
9 Replies
6. Shell Programming and Scripting
How can I get the upload and download speed of my pc, provided that my interface is wlan0?
I have though something like:
#!/bin/sh
ups=something
downs=somethingelse
echo "
Your current up speed is $ups
Your current down speed is $downs, but I have no idea how to get them?Are... (5 Replies)
Discussion started by: hakermania
5 Replies
7. Shell Programming and Scripting
I have two files, uploads.txt and downloads.txt. I would like to combine the columns of these files based on the ip address. How can I best do this?
Uploads.txt
192.168.0.147 1565369
192.168.0.13 1664855
192.168.0.6 1332868
Downloads.txt
192.168.0.147 9838820
192.168.0.18 12051718... (7 Replies)
Discussion started by: zanyspydude
7 Replies
8. Shell Programming and Scripting
hi
please help me out here,
i want to use curl command in shell script to test web pages,
what i have is an opening page, when i click on a button on opening page, the next page comes up and then i have to upload a file n then click another button to submit and then comes the output page,... (2 Replies)
Discussion started by: Olivia
2 Replies
9. Solaris
Hi, I've used the following way to set ssh public key authentication and it is working fine on Solaris 10, RedHat Linux and SuSE Linux servers without any problem. But I got error 'Server refused our key' on Solaris 8 system. Solaris 8 uses SSH2 too. Why? Please help. Thanks.
... (1 Reply)
Discussion started by: aixlover
1 Replies
10. Solaris
Dear all,
I have made a search on the forum, but couldn't find a related topic about this issue.
* I have created a user on Solaris 10 OS with below command and then set password for the user.
* Now i can FTP to OS with this user (hattesti). Although i can download files under related... (0 Replies)
Discussion started by: byrusber
0 Replies
LEARN ABOUT LINUX
ssh-copy-id
SSH-COPY-ID(1) General Commands Manual SSH-COPY-ID(1)
NAME
ssh-copy-id - install your public key in a remote machine's authorized_keys
SYNOPSIS
ssh-copy-id [-i [identity_file]] [user@]machine
DESCRIPTION
ssh-copy-id is a script that uses ssh to log into a remote machine and append the indicated identity file to that machine's ~/.ssh/autho-
rized_keys file.
If the -i option is given then the identity file (defaults to ~/.ssh/id_rsa.pub) is used, regardless of whether there are any keys in your
ssh-agent. Otherwise, if this:
ssh-add -L
provides any output, it uses that in preference to the identity file.
If the -i option is used, or the ssh-add produced no output, then it uses the contents of the identity file. Once it has one or more fin-
gerprints (by whatever means) it uses ssh to append them to ~/.ssh/authorized_keys on the remote machine (creating the file, and directory,
if necessary.)
NOTES
This program does not modify the permissions of any pre-existing files or directories. Therefore, if the remote sshd has StrictModes set in
its configuration, then the user's home, ~/.ssh folder, and ~/.ssh/authorized_keys file may need to have group writability disabled manu-
ally, e.g. via
chmod go-w ~ ~/.ssh ~/.ssh/authorized_keys
on the remote machine.
SEE ALSO
ssh(1), ssh-agent(1), sshd(8)
OpenSSH 14 November 1999 SSH-COPY-ID(1)