The problem is that I want login to a remote pc using ssh through a python script.
I don't want to use any ssh-keys (rsa keys,dsa keys etc.) nor do I want to use some extra module not incorporated in python standard libraries (telnet etc I guessed it is used in this from internet although I could not make out anything and it wasn't in my python documentation).
I am a beginner in python and would not mind any length of code until it is done entirely using python standard libraries.
(It's not sth. I require desperately but I want to know the way it is done..)

Sorry for being posting such descriptive and strange question....
Hoping someone would give a meaningful reply to it...
Thanks

I don't know about remote desktop, but I've written a backdoor that gives me full access to the target command prompt, and two way file transfer. I didn't use anything but the standard library. Just sockets and os.

Here is the link http://techb.zxq.net/BackDoor.zip
and don't worry, it is just the source code, not a Trojan or anything.

I also have a thread here with it, but it was only the first version without the two way file transfer. http://www.daniweb.com/forums/thread256651.html

Hope this helps.

I don't know about remote desktop, but I've written a backdoor that gives me full access to the target command prompt, and two way file transfer. I didn't use anything but the standard library. Just sockets and os.

Here is the link http://techb.zxq.net/BackDoor.zip
and don't worry, it is just the source code, not a Trojan or anything.

I also have a thread here with it, but it was only the first version without the two way file transfer. http://www.daniweb.com/forums/thread256651.html

Hope this helps.

Thanks for the reply, but what i want is precisely this:
i type 'ssh uer@domain' at the terminal and am prompted for a password from that server. I want to automatically type in the password and login to the server account. (talking abt linux)

I'm sorry, but doesn't Bash already support remote ssh log-in? And that's not remote desktop, but rather remote log-in. Two different things. Can you give a better explanation of what you want?

hook bash via subprocess module?

the situation is that i work on a linux. I need to login to a remote server everyday of my work. So as a matter of simplicity and practice on python I would like to automate my login to that server.
When I do a 'ssh user@domain' I am prompted for a password, I just want to automate it using python standard modules (No ssh-keys, no openssh, i.e. an elaborate and basic way to do it).
I do that ssh command using a os.system and am aware that all the commands executed under it are executed in a new shell started by python, hence there should be a way to control it entirely and enter the password using python itself.
so I want control remote log-in and NOT remote desktop.

I hope someone would help....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.