Try running the man command on ssh and see what it tells you.
I'm trying to set up a ssh server on my computer and it's giving me an error when I try to ssh into it:
[COMMENT]root@bt:~# ssh localhost
root@localhost's password:
BackTrack 4 (PwnSauce) Penetration Testing and Auditing Distribution
Last login: Mon Jul 12 02:50:25 2010 from localhost
X: warning; process set to priority -1 instead of requested priority 0
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.
[/COMMENT]
As you can see, I'm not even running it with the '-X' option, but it's still giving me that error. What's the cause of this and how can I fix it?
Try running the man command on ssh and see what it tells you.
Capitalisation is important. It's the difference between "Helping your brother Jack off a horse" and "Helping your brother jack off a horse".
The Forum Rules, Forum FAQ and the BackTrack Wiki... learn them, love them, live them.
Definitely a case of user not knowing what he/she is doing.
OP take a look at the man page and some tutorials on using ssh in ubuntu. This is covered extensively.
UNIX man pages : ssh (1)
Beginning SSH on Ubuntu | Principia Labs
To me, and I'm probably wrong this early in the morning but I'm going to suggest it anyway, it looks more like OP has put a "startx" command in his logon file which is, naturally, being executed by root when he logs in via SSH.
The most note worthy part here is where the error message is manifesting - after the "last" component of the ssh server.
Still not underestimating the power...
There is no such thing as bad information - There is truth in the data, so you sift it all, even the crap stuff.
This is what I saw in the first post.I am wondering (since the OP mentions he is trying to setup an ssh server on his BT machine) if the OP knows that there is already an ssh server setup and is only waiting on a destination and the keys for it. OP there is a tutorial in the how-to that is about networking that will also help out.Code:root@bt:~# ssh localhost
But generally you are wanting something like> localuser@localmachine:# ssh remoteuser@remotemachine