SFTP from SSH2 to SSH


 
Thread Tools Search this Thread
Operating Systems Solaris SFTP from SSH2 to SSH
# 1  
Old 07-13-2010
SFTP from SSH2 to SSH

Hi,

Earlier, I have configured SFTP successfully in my prev jobs.
This time I have to configure SFTP for local server (uses SSH2) and remote server (uses SSH).
I tried to search the forum. I did not find the right thread.
I appreciate your help.
The following is the additional info

Code:
> ssh -V
sshg3: SSH Tectia Client 6.0.5 on sparc-sun-solaris2.8
Build: 7
Product: SSH Tectia Client


Last edited by Scott; 07-13-2010 at 02:04 PM.. Reason: Code tags
# 2  
Old 07-13-2010
Are you asking ssh2->ssh machine?

On solaris the primary ssh1 method of access is --

ssh1 access files: /etc/hosts.equiv or /etc/shosts.equiv or $HOME/.shosts or $HOME/.rhosts on the server along with /etc/ssh_known_hosts to allow access.
The secondary method uses the equiv files, which is less secure.

Is this what you are asking?
# 3  
Old 07-19-2010
When I generate the key in SSH2, the key could not be associated to SSH1 as the key generation of SSH2 is different from SSH1.
Earlier I just configured both (target and source server are same as either SSH1 or SSH2) but do not have good knowledge of admin side of Unix/Linux.
# 4  
Old 07-19-2010
ssh1 keys are dsa

Code:
ssh-keygen -t dsa

They go in ~/.ssh as authorized_keys - start with protections on .ssh as 700.
The files in .ssh as 700 also. The root user cannot have access via keys in SSH.

See if that helps.

Last edited by jim mcnamara; 07-19-2010 at 11:35 AM.. Reason: Though the box was linus - oops.
# 5  
Old 07-19-2010
I do not have control over .ssh as it is in remote server. The local server (which I have control) has SSH2.
Another quick question from your reply - Do you mean to say that dsa is generated for SSH and rsa is generated for SSH2? I know one creates key and other creates the key as well as encrypts it.
# 6  
Old 07-20-2010
ssh1 keys are created by the following command when you are running the command on an ssh2 box:

ssh-keygen -t dsa

If you run keygen on an ssh1 box there is no -t option AFAIK. rsa and dsa are rivest and diffie-hellman, they are not encrypted, they are plaintext keys. you get two keys when you run keygen - a public key and a private key. The public key is sent to the remote machine. You have to use a public key that works for ssh1, generated on an ssh2 box, hence the -t option for backward support.

You can fall back to /etc/hosts.equiv if you cannot make the keys work.
This User Gave Thanks to jim mcnamara For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Convert SSH portion to SFTP

I just discovered that my company cant use ssh because they have so wack way of retrieving files without using key-authication. I need to convert a portion of my script form ssh to sftp. Here I am logginginto the machine to print a list of files. while read line; do host=$line ssh... (2 Replies)
Discussion started by: MJCreations
2 Replies

2. UNIX for Dummies Questions & Answers

SFTP connection to SSH2 UNIX server

Plz share how we can make a passwordless SSH connection from a SSH1 UNIX server to SSH2 UNIX server. (3 Replies)
Discussion started by: krishna87
3 Replies

3. Shell Programming and Scripting

ssh/sftp connection refused

Hi all, I logged on to a Unix server and am trying to connect a remote Windows server (Windows NT) via SSH/SFTP. However I always got the following error, sftp username@host_server (or ssh username@host_server) ssh: connect to host host_server port 22: Connection refused Any advise... (1 Reply)
Discussion started by: isaacniu
1 Replies

4. Shell Programming and Scripting

sftp ssh-keygen

sftp username@host <<EOF lcd /home/dirA cd /home/dirB mput *.txt exit EOF Hi, i have done the keygen-ssh settings but rite now I log through putty I enter my credentials and then when i successfully log in, then I issue the command ssh server name then I again enter into the server but... (1 Reply)
Discussion started by: rahulsxn660
1 Replies

5. SuSE

SFTP with Suse 9.3 need help with Update ssh

Hi eryone, I'm new here. Since I'm a graphic designer and not an admin, I need to learn a lot from the first step, so please be patient with me. ;-) Most of my skills are self taught with howtos, so there might be some lack of wisdom in basics. I've setup a Suse-System (9.3) with a few upload... (3 Replies)
Discussion started by: rezent
3 Replies

6. UNIX for Dummies Questions & Answers

Locked out of ssh and sftp

I've been having troubles where i get locked out of shh and sftp. It happens overnight and when i come in the next day i have been locked out and can't seem to log in to the server through ssh or sftp. It is a co location server and each day i am having to have the hosts restart my server. When... (2 Replies)
Discussion started by: timgolding
2 Replies

7. Shell Programming and Scripting

SSH and SFTP

remotePath=$1 fileName=$2 remoteUser=$3 remoteServer=$4 echo " if ; then echo '0'; else echo '1'; fi " > temp_command.log command1=`cat temp_command.log` ssh $remoteUser@$remoteServer $command1 rm temp_command.log Above code is to check whether the file in remote server is exist. It... (1 Reply)
Discussion started by: suigion
1 Replies

8. UNIX for Advanced & Expert Users

ssh/sftp failure connection

Hello, I just want to ask regarding the meaning of the error that we got using sftp: Connecting to <TARGET SERVER IP>... @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @... (3 Replies)
Discussion started by: james_falco
3 Replies

9. UNIX for Dummies Questions & Answers

ssh2 & sftp help

Hi, I need to implement sftp between server 1 and server2. I have already generated the public key using account user1 on server 1 and and sent it to the administrator of server2. I have also finished updating the identification file at /home/user1/.ssh2 I have an account created... (11 Replies)
Discussion started by: tansha
11 Replies

10. AIX

SFTP Issue with ssh

Hello all, hopefuly this is the right place to post this. I am having an issue with a new sftp process on an AIX box. I created id_rsa.pub file and sent it to the person who runs the sftp process. He added the key to the authorized_Users (I only have phone contact with him and its an outside... (7 Replies)
Discussion started by: dbridle
7 Replies
Login or Register to Ask a Question