SCP requests password despite common key


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers SCP requests password despite common key
# 8  
Old 07-05-2012
Crap, I messed up. One typo and I set the permissions to 655 instead of 755. Now I'm locked out of the remote server. How do I fix this?

EDIT: Never mind, fixed it. I'm going to remove the .ssh directories on all machines and restart the process of key generation.
# 9  
Old 07-05-2012
6 means RW read-write... not good on any directory unless you wish no access... you need on a directory the x (for execute) to traverse the directory...
# 10  
Old 07-05-2012
It is still not working. The two servers (Faust and Hornet) may have different permissions. I can copy files in a Hornet terminal to/from Faust, but I need a password despite the key. I cannot copy files in a Faust terminal to/from Hornet because of the key; no password prompt, but scp hangs.
# 11  
Old 07-05-2012
Quote:
copy file in a Hornet terminal
?
Do you mean you made a copy/paste in a GUI?
# 12  
Old 07-05-2012
Quote:
Originally Posted by vbe
?
Do you mean you made a copy/paste in a GUI?
No, I mean scp [fileonhornet] [faustuser@faustserver]:[destination]

Last edited by SNorton; 07-05-2012 at 12:17 PM..
# 13  
Old 07-05-2012
Lets try to concentrate on ONE server (at a time...), when I get stuck (it happens sometimes, the worst case is when it works one way only (that was my first post...)).
choose your local and your distant server.
Read again carefully Bakunin's post (explains far better than I can... thanks Wolf!).
Best would be to start all over once more.
this time I need to know if you are root (yes there are some admin that configure sshd not allowing root to use ssh...), if not can you su/sudo to have admin priviledge (we might need it...).
As you user can you use any other ways to connect except ssh ( telnet, remsh...) if so, what, the idea is to see without ssh if all is OK
If you can't I will need to think a bit more....

Last edited by vbe; 07-05-2012 at 01:55 PM.. Reason: typos
# 14  
Old 07-06-2012
Alright, a new development has come to light. It seems I don't have enough space on Hornet to copy all the files I need. There's about 273 GB worth of files, and apparently I only have a few MB of space. On a 300-TB supercomputer. In whose mind does that make sense?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Linux - Join 2 csv files with common key

Hi, I am trying to join 2 csv files, to create a 3rd output file with the joined data. Below is an example of my Input Data: Input File 1 NAME, FAV_FOOD, FAV_DRINK, ID, GENDER Bob, Fish, Coke, 1, M Lisa, Rice, Water, 2, F Jenny, Noodle, Tea, 3, F Ken, Pizza, Coffee, 4, M Lisa,... (7 Replies)
Discussion started by: RichZR
7 Replies

2. UNIX for Dummies Questions & Answers

Merge selective columns from files based on common key

Hi, I am trying to selectively merge two files based on keys reported in the 1st column. File1: #file1-header1 file1-header2 111 qwe rtz uio 198 asd fgh jkl 165 yxc 789 poi uzt rew 89 lkj File2: #file2-header2 file2-header2 165 ghz nko2 ... (2 Replies)
Discussion started by: dovah
2 Replies

3. UNIX for Advanced & Expert Users

scp without first time key generation and confirmation

Hi All, I have setup ssh keys for a user to transfer files without password between two hosts. But still the first time scp asks for confirmation and generates a key Due to this our jobs are failing. Is there a way I can avoid that first time key generation and confirmation also and automate... (3 Replies)
Discussion started by: baanprog
3 Replies

4. UNIX for Dummies Questions & Answers

Public and Private Key generation for scp

Hi, What tool is used to generate public and private keys for SCP? Do you have an example script that generates these keys, puts them in files and then another example script that references them from SCP? Thanks, (9 Replies)
Discussion started by: Astrocloud
9 Replies

5. Shell Programming and Scripting

Merge multiple lines in same file with common key using awk

I've been a Unix admin for nearly 30 years and never learned AWK. I've seen several similar posts here, but haven't been able to adapt the answers to my situation. AWK is so damn cryptic! ;) I have a single file with ~900 lines (CSV list). Each line starts with an ID, but with different stuff... (6 Replies)
Discussion started by: protosd
6 Replies

6. Shell Programming and Scripting

SCP command end with Host Key not found in database

Hi, I'm trying to copy a file from one server to remote server using SCP command. Below is the command i tried and got host key not found in database errror. scp sendfile.txt Remoteserver:/home/xxxx/. Error Message: Host key not found from database Key fingerprint:... (2 Replies)
Discussion started by: skcvasanth
2 Replies

7. Shell Programming and Scripting

Help- Change the password of users to common one

Hi all I have some 106 users of which i need to change the password of them to a common one. I dont know their paswword. But i need to reset them to a common one. How can i do this with a shell script? It would be a great help if some one can help to sort out this.:b::b: I know it can be... (0 Replies)
Discussion started by: Tuxidow
0 Replies

8. UNIX for Dummies Questions & Answers

SCP using a dsa key

Hello all, My first post in this forum. I am trying to download a file from a server to which I have been granted access. They setup a DSA public key and I have a local private key. When i try to download the file it prompts me for my password. How can I tell unix to use the DSA key... (1 Reply)
Discussion started by: who2
1 Replies

9. UNIX for Advanced & Expert Users

Setting Up public key on Windows for ssh/scp

Hi, I am trying to scp a file from our Unix server to the local Windows machine.I have created the key pair in Unix server using ssh-keygen command in unix. But I am not sure where can we put the public key(generated on Unix) in Windows machine so that scp from Unix machine to Windows is... (3 Replies)
Discussion started by: dennis.jacob
3 Replies
Login or Register to Ask a Question