[solved] SSH connecting to one server but failed in another


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting [solved] SSH connecting to one server but failed in another
# 1  
Old 09-12-2011
[solved] SSH connecting to one server but failed in another

Hello

I have connected to a remote server via ssh but its not working now ,but the same method I applied in another server and its working fine now
Below are the logs

For Successfully connected server

Code:
 
debug1: Authentications that can continue: gssapi-keyex,gssapi-with-mic,publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering public key: /home/r141695/.ssh/id_dsa
debug2: we sent a publickey packet, wait for reply
debug1: Server accepts key: pkalg ssh-dss blen 433
debug2: input_userauth_pk_ok: fp bd:83:33:65:d7:8d:2d:3a:a1:27:57:2c:d5:4b:f3:5e
debug1: read PEM private key done: type DSA
debug1: Authentication succeeded (publickey).


For unsuccessful connection

Code:
 
debug1: Authentications that can continue: gssapi-keyex,gssapi-with-mic,publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering public key: /home/r141695/.ssh/id_dsa
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: gssapi-keyex,gssapi-with-mic,publickey,password,keyboard-interactive
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.

Kindly let me know what the reason for different behaviour ,I have applied the same logic in both of the server

Thanks for your support in advance

---------- Post updated at 05:11 AM ---------- Previous update was at 04:42 AM ----------

Its fine now ..Some folder permission was changed .Now restored and working fine

Last edited by pludi; 09-12-2011 at 08:11 AM.. Reason: marked as solved
# 2  
Old 09-12-2011
You can move ssh equivalence to remote machines with no such worries using "scp -rp" your .ssh*/ dirs to their destination dir there and a password one last time (just remove any keys for localhost/127.0.0.1 as directed if and when you try them).
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

Connecting remote SSH server which OSS lib to choose ?

Hey i want to be able to write simple SSH client to be able to connect to SSH server and invoke remote SSH command i found libssh and libssh2 and the old openSSh , what is the best and most supported library to choose from ? i need it to be cross platform . Thanks (0 Replies)
Discussion started by: umen
0 Replies

2. Red Hat

Connecting using SSH in WAN network

i have been learning linux from some time for linux plus exam and learned SSH protocol and have practised to connect to remote computer within Lan network and able to sucesssfully connect it . using ssh username@hostname But i wish to ask how do i use same ssh protocol to connect to other ... (6 Replies)
Discussion started by: lobsang
6 Replies

3. UNIX for Advanced & Expert Users

Connecting using ssh

We have 2 different servers say A and B and I want to check the log file of 2 servers simultaneously. If I am logged into server A how can I connect to server B. I have used ssh username@B.But it is asking password. How can I give the password on ssh. Or is there any other utility for... (2 Replies)
Discussion started by: jim john
2 Replies

4. Solaris

[Solved] Issues connecting to storage array

I have two T2000 servers connected to sun storage array StorEdge 3310 as follows: CH0 connected to SNGL BUS CONF CH1 connected to HOST1 CH2 open CH3 connected to HOST2 DUAL BUS CONF open I have created some luns which I can mount and use on HOST1 but from HOST2 I cant see them ... (3 Replies)
Discussion started by: aliyesami
3 Replies

5. Shell Programming and Scripting

[Solved] problem - connecting code with external file

hello. this is the code #!/bin/sh total1024=0 total2048=0 total8192=0 if ; then if ; then while read variable do if ; then total1024=$(( $total1024 + 1 )) fi if ; then total2048=$((... (4 Replies)
Discussion started by: Telis
4 Replies

6. IP Networking

Connecting via SSH with dynamic IP

My VPN setup requires me to allow users via IP in the firewall, before they can access the VPN via SSH. The problem is that my home IP is dynamic, and I have to re-add it every time I reconnect. Any ideas? (2 Replies)
Discussion started by: rlopes
2 Replies

7. AIX

problems connecting with exceed (solved)

Hi, We have a user who cannot connect to the aix system anymore with hummingbird exceed. Our unix servers are aix 5.3. She is running windows xp and using hummingbird 12. She used to not have any problem, but now when she tries to use xstart she gets an error 'unable to connect to host using... (0 Replies)
Discussion started by: fwellers
0 Replies

8. Linux

connecting to SSH

Well im on Fedora, and theres no sub section for Fedora so yea Well how do you connect to an SSH, while on a windows terminal? And also to transfer a file from my desktop to a server? how is this done scp command is not working for me (3 Replies)
Discussion started by: gangsta
3 Replies

9. Shell Programming and Scripting

connecting servers using SSH - help needed

Hi all, I have a script written successfully and tuned by our members, now I am trying to execute this script from a taxi server. My aim is I want to connect to four servers via ssh where I want to ran a script or run some commands and write the output to a file in the Taxi server. I... (12 Replies)
Discussion started by: senthilkumar_ak
12 Replies

10. Shell Programming and Scripting

Connecting other server using ssh!

Hi All, Here i am having a problem in my script....:) i have one script which will connect from my linux box to antoher linux box.. let say...currently i am in 55.23.621.123 and i want to connect to another box which is 55.23.621.118 as we know we can connect using ssh... (2 Replies)
Discussion started by: Shahul
2 Replies
Login or Register to Ask a Question