|
|
|
SSH
|
|||
|---|---|---|---|
|
#18+
Здравствуйте, подскажите плиз в чем может быть проблема? Не могу передать файл по ssh Запустил ssh-agent $BASH Добавил сгенерированный приватный ключ ssh-add .ssh/id_dsa Добавил содержимое d_dsa.pub в /home/oracle/.ssh/authorized_keys протестировал подключение shh 192.168.0.51. Успешно, вход без паролья! Но как только передаю файл : scp 123.txt oracle@192.168.0.51:/u02/orcl/2/ выходит приглашение (хотя не должно): oralce@192.168.0.51's password: ладно, смирился, ввожу пароль:), выходит ошибка Permission denied (publickey,gssapi-with-mic,password). хотя : [root@localhost orcl]# ls -l итого 12 drwxrwxrwx 2 oracle oinstall 4096 Май 23 00:04 2 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 23.05.2009, 17:10 |
|
||
|
SSH
|
|||
|---|---|---|---|
|
#18+
вот лог Executing: program /usr/bin/ssh host 192.168.0.51, user oralce, command scp -v - t /u02/orcl OpenSSH_4.3p2, OpenSSL 0.9.8b 04 May 2006 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: Connecting to 192.168.0.51 [192.168.0.51] port 22. debug1: Connection established. debug1: identity file /home/oracle/.ssh/identity type -1 debug1: identity file /home/oracle/.ssh/id_rsa type -1 debug1: identity file /home/oracle/.ssh/id_dsa type 2 debug1: loaded 3 keys debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3 debug1: match: OpenSSH_4.3 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_4.3 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-cbc hmac-md5 none debug1: kex: client->server aes128-cbc hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Host '192.168.0.51' is known and matches the RSA host key. debug1: Found key in /home/oracle/.ssh/known_hosts:7 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,gssapi-with-mic,password debug1: Next authentication method: gssapi-with-mic debug1: Unspecified GSS failure. Minor code may provide more information Unknown code krb5 195 debug1: Unspecified GSS failure. Minor code may provide more information Unknown code krb5 195 debug1: Unspecified GSS failure. Minor code may provide more information Unknown code krb5 195 debug1: Next authentication method: publickey debug1: Offering public key: /home/oracle/.ssh/id_dsa debug1: Authentications that can continue: publickey,gssapi-with-mic,password debug1: Trying private key: /home/oracle/.ssh/identity debug1: Trying private key: /home/oracle/.ssh/id_rsa debug1: Next authentication method: password oralce@192.168.0.51's password: ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 23.05.2009, 19:54 |
|
||
|
SSH
|
|||
|---|---|---|---|
|
#18+
А что в логах на стороне сервера? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 23.05.2009, 20:28 |
|
||
|
SSH
|
|||
|---|---|---|---|
|
#18+
-ParadoXxпротестировал подключение shh 192.168.0.51. Успешно, вход без паролья! А теперъ папропУй вйти вотт такк: ssh oracle@192.168.0.51 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 23.05.2009, 20:30 |
|
||
|
SSH
|
|||
|---|---|---|---|
|
#18+
Ещё попробуйте войти под "oracle", а не "oralce" :) Во всех логах, которые вы выложили написано именно "oralce" ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 23.05.2009, 23:47 |
|
||
|
SSH
|
|||
|---|---|---|---|
|
#18+
ivsmirЕщё попробуйте войти под "oracle", а не "oralce" :) Во всех логах, которые вы выложили написано именно "oralce" все нормально, исправил, самому смешно стало, теперь другая проблема, вписал команду копирования scp 123.txt oracle@192.168.0.51:/u02/orcl/2/ в скрипт-файлик, и хотел запустить через крон - не идет, пишет permission denied, please try again. Permission denied.(publickey,gssapi-with-mic,password). Lost connection. Если вручную запустить скрипт - работает!! Хотя: 08 0 * * * /home/oracle/backup_to_51.sh -rwxrwxrwx 1 oracle oinstall 165 Май 24 00:13 backup_to_51.sh ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.05.2009, 13:58 |
|
||
|
SSH
|
|||
|---|---|---|---|
|
#18+
1. В чей crontab вы добавили эту запись? В общесистемный или для ораклового юзера? 2. А как вы "вручную" запускаете этот скрипт? Через "# sh <скрипт>" или "# ./<скрипт>" 3. От какого пользователя вы запускаете этот скрипт "вручную"? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.05.2009, 16:28 |
|
||
|
SSH
|
|||
|---|---|---|---|
|
#18+
ivsmir1. В чей crontab вы добавили эту запись? В общесистемный или для ораклового юзера? 2. А как вы "вручную" запускаете этот скрипт? Через "# sh <скрипт>" или "# ./<скрипт>" 3. От какого пользователя вы запускаете этот скрипт "вручную"? 1.В кронтаб Оракла 2.Через sh, в скрипте #!/bin/sh 3.От Оракла ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.05.2009, 16:37 |
|
||
|
SSH
|
|||
|---|---|---|---|
|
#18+
У Вас там случайно SELinux на запущен? Попробуете временно его задизейблить. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.05.2009, 19:24 |
|
||
|
SSH
|
|||
|---|---|---|---|
|
#18+
ivsmirУ Вас там случайно SELinux на запущен? Попробуете временно его задизейблить. Он был задизейблен еще при установке системы) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.05.2009, 20:00 |
|
||
|
SSH
|
|||
|---|---|---|---|
|
#18+
Вот лог копирования через крон: Executing: program /usr/bin/ssh host 192.168.0.51, user oracle, command scp -v -t /u02/orcl/backup1/ OpenSSH_4.3p2, OpenSSL 0.9.8b 04 May 2006 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: Connecting to 192.168.0.51 [192.168.0.51] port 22. debug1: Connection established. debug1: identity file /home/oracle/.ssh/identity type -1 debug1: identity file /home/oracle/.ssh/id_rsa type -1 debug1: identity file /home/oracle/.ssh/id_dsa type 2 debug1: loaded 3 keys debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3 debug1: match: OpenSSH_4.3 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_4.3 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-cbc hmac-md5 none debug1: kex: client->server aes128-cbc hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Host '192.168.0.51' is known and matches the RSA host key. debug1: Found key in /home/oracle/.ssh/known_hosts:7 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,gssapi-with-mic,password debug1: Next authentication method: gssapi-with-mic debug1: Unspecified GSS failure. Minor code may provide more information Unknown code krb5 195 debug1: Unspecified GSS failure. Minor code may provide more information Unknown code krb5 195 debug1: Unspecified GSS failure. Minor code may provide more information Unknown code krb5 195 debug1: Next authentication method: publickey debug1: Trying private key: /home/oracle/.ssh/identity debug1: Trying private key: /home/oracle/.ssh/id_rsa debug1: Offering public key: /home/oracle/.ssh/id_dsa debug1: Server accepts key: pkalg ssh-dss blen 433 debug1: PEM_read_PrivateKey failed debug1: read PEM private key done: type <unknown> debug1: read_passphrase: can't open /dev/tty: No such device or address debug1: Next authentication method: password debug1: read_passphrase: can't open /dev/tty: No such device or address debug1: Authentications that can continue: publickey,gssapi-with-mic,password Permission denied, please try again. debug1: read_passphrase: can't open /dev/tty: No such device or address debug1: Authentications that can continue: publickey,gssapi-with-mic,password Permission denied, please try again. debug1: read_passphrase: can't open /dev/tty: No such device or address debug1: Authentications that can continue: publickey,gssapi-with-mic,password debug1: No more authentication methods to try. Permission denied (publickey,gssapi-with-mic,password). lost connection ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.05.2009, 20:33 |
|
||
|
SSH
|
|||
|---|---|---|---|
|
#18+
понял, скрипт, запускается от новой сессии Оракла, теперь нужно как - нибудь вскормить ему passphrase ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 25.05.2009, 21:54 |
|
||
|
|

start [/forum/topic.php?fid=25&fpage=123&tid=1485793]: |
0ms |
get settings: |
11ms |
get forum list: |
19ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
47ms |
get topic data: |
11ms |
get forum data: |
3ms |
get page messages: |
65ms |
get tp. blocked users: |
2ms |
| others: | 254ms |
| total: | 420ms |

| 0 / 0 |
