03-17-2008
problem with SFTP
Hi,
I am doing a FTP from a Unix host to a windows host. I have generated the key in my unix server and added them in the destination host. In the Destination they changed the ip address now i am not able to connect. I can see it is reaching till that server but i am not receiving that server certificate. Below is the error message.
firenze$ /Application/PSOFT/.ssh:/opt/boksm/bin/sftp -o port=9900 ext-amat@158.156.156.86
Connecting to 158.156.156.86...
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
b1:e3:43:b0:a4:57:cf:65:9c:cc:85:9e:e1:98:f7:41.
Please contact your system administrator.
Add correct host key in /Application/PSOFT/.ssh/known_hosts to get rid of this message.
Offending key in /Application/PSOFT/.ssh/known_hosts:6
RSA host key for 158.156.156.86 has changed and you have requested strict checking.
Host key verification failed.
Connection closed
firenze$ /Application/PSOFT/.ssh:
10 More Discussions You Might Find Interesting
1. Cybersecurity
Hi,
I'm in the process of writting some scripts using sftp2 on a HP UX 11.11 machine.
I've found that when I do an 'ls' command , even when in batch mode, it asks for me to 'press any key to continue or q to quit' after a screenful of data. Of course in batch mode this cause the script to hang.... (0 Replies)
Discussion started by: sudojo
0 Replies
2. Shell Programming and Scripting
Hi,
I have a folder ABC.
I have sftp executing from this folder successfully to other servers using keys which avoids passowrd prompt.
The permissions for the folder are only for user.ie drwx------
But i need another id to access my folder and execute the scripts.
So i changed the access... (2 Replies)
Discussion started by: borncrazy
2 Replies
3. Shell Programming and Scripting
Hi I need to perform the following task using shell script.
establishing a sftp connection to a server.
then get the latest file from there to our own server.
But i am not finding ny suitable command in sftp console to get the latest file.
can anyone help me in this reagrd.
if ny other... (1 Reply)
Discussion started by: UBD
1 Replies
4. UNIX for Advanced & Expert Users
Hi
my sftp batch run connect to the server and transfer the txt file to target server. but when I run again same batch with same file it give error.
Any idea about this error.....
regards
Jamil
edit by bakunin: please do not "hijack" threads. That is: if you have a genuine... (1 Reply)
Discussion started by: Jamil Qadir
1 Replies
5. Shell Programming and Scripting
Hi,
Here is my problem::confused:
Daily my ETL process will create 4 (Four) Flatfiles in unix box. Upon creation of the flatfiles, I need to do "SFTP" the files to a "Remote Server".
Sometimes While doing SFTP, the files get trucated due to it's size.
Now I would like to design a Korn... (3 Replies)
Discussion started by: npk2210
3 Replies
6. Shell Programming and Scripting
I have written a samll sftp script abc.sh as below
sftp user@remote-server <<EOF
lcd /home/gopi
cd /home/raju
get COA
exit
EOF
Its working. But when i rin the script, it gives the acknowledgement like ,
sftp> lcd /home/gopi
sftp> cd /home/raju
sftp> get COA
Fetching... (3 Replies)
Discussion started by: Gopal_Engg
3 Replies
7. Shell Programming and Scripting
I want to execute shell script with in sftp session for remote server.
like i have a shell script test.sh that is on local server.i want to execute like
sftp user@192.168.56.10
sftp> test.sh ---execute for remote server not for local server.
Please help me for this issue (2 Replies)
Discussion started by: SAUD PASHA
2 Replies
8. Shell Programming and Scripting
I have an sftp script which is uploading file into a directory which is not specified wth the cd command . For example:
sftp sftpserver
>>lcd /abc
>>cd /tmp/bef
>> put /abc/abc.txt /tmp/bef/abc.txt
Uploading file from /abc/abc.txt to /xyz/wxy/tmp/bef/abc.txt
>>quit
The file is getting... (2 Replies)
Discussion started by: NP1
2 Replies
9. HP-UX
Dear All,
Previously we push file using ftp in outside node. Now we try sftp, but connection is not established. I am provide you the debug log. Any idea to solve the issue?
tabs@tabsdb02:/ccbs/users/tabs$ sftp -vvv e132079@205.140.6.188
OpenSSH_5.8p1+sftpfilecontrol-v1.3-hpn13v7,... (0 Replies)
Discussion started by: makauser
0 Replies
10. UNIX for Beginners Questions & Answers
i have a problem no a dream :)
i have a list and i want to do :
cat lista_olo
for file in `cat list`
do
sftp myuser@myip << EOF
ls -l mydir/$file/
EOF
but there is an error . Syntax error at line 11 : `<' is not matched
How can i do ?
Regards. (1 Reply)
Discussion started by: Francesco_IT
1 Replies
LEARN ABOUT DEBIAN
openpgp2ssh
OPENPGP2SSH(1) BSD General Commands Manual OPENPGP2SSH(1)
NAME
openpgp2ssh -- translate OpenPGP keys to SSH keys
SYNOPSIS
openpgp2ssh < mykey.gpg
gpg --export $KEYID | openpgp2ssh $KEYID
gpg --export-secret-key $KEYID | openpgp2ssh $KEYID
DESCRIPTION
openpgp2ssh takes an OpenPGP-formatted primary key and associated subkeys on standard input, and spits out the requested equivalent SSH-style
key on standard output.
If the data on standard input contains no subkeys, you can invoke openpgp2ssh without arguments. If the data on standard input contains mul-
tiple keys (e.g. a primary key and associated subkeys), you must specify a specific OpenPGP key identifier as the first argument to indicate
which key to export. The key ID is normally the 40 hex digit OpenPGP fingerprint of the key or subkey desired, but openpgp2ssh will accept
as few as the last 8 digits of the fingerprint as a key ID.
If the input contains an OpenPGP RSA public key, it will be converted to the OpenSSH-style single-line keystring, prefixed with the key type
(`ssh-rsa'). This format is suitable (with minor alterations) for insertion into known_hosts files and authorized_keys files.
If the input contains an OpenPGP RSA secret key, it will be converted to the equivalent PEM-encoded private key.
openpgp2ssh is part of the monkeysphere(7) framework for providing a PKI for SSH.
CAVEATS
The keys produced by this process are stripped of all identifying information, including certifications, self-signatures, etc. This is
intentional, since ssh attaches no inherent significance to these features.
openpgp2ssh will produce output for any requested RSA key. This means, among other things, that it will happily export revoked keys, unveri-
fiable keys, expired keys, etc. Make sure you do your own key validation before using this tool!
EXAMPLES
gpg --export-secret-key $KEYID | openpgp2ssh $KEYID | ssh-add -c /dev/stdin
This pushes the secret key into the active ssh-agent(1). Tools such as ssh(1) which know how to talk to the ssh-agent(1) can now rely on the
key.
AUTHOR
openpgp2ssh and this man page were written by Daniel Kahn Gillmor <dkg@fifthhorseman.net>.
BUGS
openpgp2ssh only works with RSA keys. DSA keys are the only other key type available in both OpenPGP and SSH, but they are currently unsup-
ported by this utility.
openpgp2ssh only accepts raw OpenPGP packets on standard input. It does not accept ASCII-armored input. openpgp2ssh Currently only exports
into formats used by the OpenSSH. It should support other key output formats, such as those used by lsh(1) and putty(1).
Secret key output is currently not passphrase-protected.
openpgp2ssh currently cannot handle passphrase-protected secret keys on input.
SEE ALSO
pem2openpgp(1), monkeysphere(1), monkeysphere(7), ssh(1), monkeysphere-authentication(8), monkeysphere-host(8)
BSD
March 1,, 2009 BSD