SFTP Connectivity


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting SFTP Connectivity
# 1  
Old 10-05-2015
SFTP Connectivity

can any one help me in SFTP connectivity?

I am supposed to add Keys in my server(service Id).
We are using ssh RSA authentication. But I m provided with DSA SSH2 2048 keys. Even after sharing, it didnt work.

Please help.
# 2  
Old 10-05-2015
DSA keys should work pretty much the same way RSA keys do.

If the public key is not recognized by the server, check that the permissions on ~/.ssh and ~/.ssh/authorized_keys on the server are set to owner only
Code:
drwx------. 2 hergp rzadmin 4096 Jun 19 12:50 .ssh
-rw-------. 1 hergp rzadmin  394 Jun 19 12:50 .ssh/authorized_keys

If the server is running SELinux in enforcing mode, the labels of these two objects have to be set to ssh_home_t:
Code:
drwx------. hergp rzadmin system_u:object_r:ssh_home_t:s0  .ssh
-rw-------. hergp rzadmin system_u:object_r:ssh_home_t:s0  .ssh/authorized_keys

This User Gave Thanks to hergp For This Post:
# 3  
Old 10-05-2015
permissions are like as you stated.. but still receiving the same error.
Could you please help...

Those are SSH2 keys
# 4  
Old 10-05-2015
ssh-keygen's manpage says "DSA keys must be exactly 1024 bits as specified by FIPS 186-2" and the tool refuses to create keys larger than 1024 bits. So it seems conceivable, that the ssh daemon refuses to accept such keys.

Can you verify, that a different type of key (1024 bit DSA or some RSA key) would work?
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

SSH Connectivity

I am trying to setup a password less connection from a Linux server to Window server and will be using a script to scp a file without using password. Linux Server (source) servername : testlinux id : testbatch Windows Server (Target) servername : testwin id : testwinlogin I copied... (5 Replies)
Discussion started by: dr46014
5 Replies

2. Shell Programming and Scripting

Sftp : not able to print the echo statements after the sftp transfer

I had the below sftp script working perfectly but the problem is I am not able to send the echo statements . #!/bin/sh echo "Starting to sftp..." sftp admin@myip << END_SCRIPT cd /remotepath/ lcd /localpath/ mget myfiles*.csv bye END_SCRIPT echo "Sftp successfully." echo echo... (11 Replies)
Discussion started by: scriptscript
11 Replies

3. Red Hat

Chroot sftp users, remote sftp login shows wrong timestamp on files

Hello, I have a weird issue, I have RHEL 5.7 running with openssh5.2 where sftpgroup OS group is chroot. I see the difference difference in timestamp on files, when I login via ssh and SFTP, I see four hour difference, is something missing in my configuration. #pwd... (8 Replies)
Discussion started by: bobby320
8 Replies

4. IP Networking

Lack of IP Connectivity

Hi Can any one please help identify the issue in scenario 2: Connectivity Diagram: 1) Distribution Switch----Int_Switch----LabSwitch(Fa1/0)----Terminal Ser 2) Distribution Swtich----Int_Swtich----LabSwitch(Fa2/0)----3640 Router ---all links are access links Distribution Switch... (0 Replies)
Discussion started by: sureshcisco
0 Replies

5. Shell Programming and Scripting

SFTP-how to log individual sftp command error while executing shell script

Hi, I have situation where i need to automate transferring 10000+ files using sftp. while read line do if ; then echo "-mput /home/student/Desktop/folder/$line/* /cygdrive/e/folder/$line/">>sftpCommand.txt fi done< files.txt sftp -b sftpCommand.txt stu@192.168.2.1 The above... (1 Reply)
Discussion started by: noobrobot
1 Replies

6. Shell Programming and Scripting

Database connectivity

Hi All, How can we access oracle database which is in another server using shell scripts? Please share your ideas. Regards, Raja (1 Reply)
Discussion started by: Rajakct84
1 Replies

7. Solaris

connectivity between servers

We have two servers A and B (both running Solaris 10) out of which one is application server and the other is database server. The two servers faced certain network issues and the two servers were temporarily disconnected.this happened around 5AM GMT monday.Can anyone suggest some log files or... (2 Replies)
Discussion started by: asalman.qazi
2 Replies

8. UNIX for Advanced & Expert Users

Need pseudo connectivity

Hi All, I have putty on my system (Vista). I need some server details to login via internet for my personnel practice. Can any body help me out. In case this not feasible, just let me know any other way to work with UNIX terminal on Windows Vista itself. Please help me since i am desparately... (3 Replies)
Discussion started by: vikas_kesarwani
3 Replies
Login or Register to Ask a Question