Active Topics

 


Reply
Thread Tools
Posts: 94 | Thanked: 17 times | Joined on Jan 2010
#21
Originally Posted by paai View Post
Apart from winscp there is apso putty, that opens a ssh-terminal on your windows host. Try it.

If you can ping the N900 there probably is no firewall active.

Finally you can try 'telnet 192.168.2.2. 22' from the windows commandline to see if the N900 listens on the ssh port (22).

BTW: do you have a password for the 'user' acount on the N900? Perhaps winscp refuses to work if the password field id empty? You can remedy that with 'passwd user' from the n900 commandline.

Paai
telnet isnot a recognise command in win 7 cmd!

not sure what u meant with passwd user from the n900?? when i installed openssh it asked for a password, have tried with and with out the password in the feild and also with user as the username!

will have a look at the other win7 ssh client u mention!

i do have ubuntu on this laptop, im guessing its worth a try using that, so could some one do me a quick quide to setting up ssh with ubuntu?

and i do appreciate all the help given
 
jd4200's Avatar
Posts: 451 | Thanked: 424 times | Joined on Apr 2010 @ England
#22
Originally Posted by thesnake505 View Post
telnet isnot a recognise command in win 7 cmd!

not sure what u meant with passwd user from the n900?? when i installed openssh it asked for a password, have tried with and with out the password in the feild and also with user as the username!
The 'user' account (which is you) has no password by default, so you will not be able to login via SSH.
You need to set a password for it, by:

Open up the terminal, and as root type:
passwd user (note, passwd is not a typo).

Then you will be able to login as user, logining in as root via SSH is a bad idea.
 

The Following 2 Users Say Thank You to jd4200 For This Useful Post:
Posts: 162 | Thanked: 25 times | Joined on Dec 2009
#23
snake:
first, check that the ssh daemon is running on your N900


$ ps ax | grep sshd

it should show someting like

897 ? Ss 0:00 /usr/sbin/sshd

Like jd4200 and myself already suggested: give yourself a password.

$ passwd user
New pasword for user:
retype password:

(Your name on the N900 is always 'user')

Install putty, run it
It will ask for hostname or ip-address. That will be 192.168.2.2
for you (BTW: you don't have a DHCP server that can assign different IP-numbers?)

A black window will appear with 'username' (that will be user) and 'password for user' (that will be the password you assigned to user).

jd4200 and I have already said that enabling root login and logging in as root is a Bad Idea (TM). I will say it again.

paai
 

The Following 2 Users Say Thank You to paai For This Useful Post:
Posts: 94 | Thanked: 17 times | Joined on Jan 2010
#24
hay, mannaged to get a connection using putty which is cool so thanks all for that, i like the way it looks just like terminal x n the n900
now i have a couple of questions, how do i transfer files using putty?

if nessacery with using putty can i login as root with sudo gain root???

cheers
 
JonWW's Avatar
Posts: 623 | Thanked: 289 times | Joined on Jan 2010 @ UK
#25
You cannot transfer files using PuTTY as it just a Terminal window running on your phone. As you can access the N900 now, give WinSCP a try again.

When you login with PuTTY it asks you for a user name and password
User name:root
Password:The password you entered in the N900 when you installed OpenSSH

Last edited by JonWW; 2010-11-09 at 17:06.
 
Posts: 94 | Thanked: 17 times | Joined on Jan 2010
#26
winSCP is still not working, im now getting invalid access to memory every time i hit login!
 
Posts: 162 | Thanked: 25 times | Joined on Dec 2009
#27
There is a commandline counterpart to winscp, called PSCP. Download it from the same site as putty itself.

Your problems with winscp are worrying. Are you certain there is no virus in it? Run a viruscheck on your windows PC, delete winscp and install it again.

Paai
 
Posts: 162 | Thanked: 25 times | Joined on Dec 2009
#28
Originally Posted by JonWW View Post

...

User name:root
Password:The password you entered in the N900 when you installed OpenSSH
Jon: please do not suggest to people to do ssh-logins as root. It is a major security hole.

Snake, if you changed sshd.conf to allow root logins, you'd better change it back.

Paai
 
Posts: 162 | Thanked: 25 times | Joined on Dec 2009
#29
Originally Posted by thesnake505 View Post

...


if nessacery with using putty can i login as root with sudo gain root???

cheers
Yes, that is possible and much, much safer than allowing direct root login, which, (Grin, I feel I repeat myself) should be disabled...

But I gather that you are not very experienced with Linux, so understand that being root is an excellent opportunity to shoot yourself in both feet at the same time, so avoid it as much as possible.

Paai
 
famdango's Avatar
Posts: 17 | Thanked: 5 times | Joined on Feb 2010 @ Wales
#30
Originally Posted by thesnake505 View Post
ok, i have installed ssh status app noobmonkey put a lint to, i click it so it says ssh statusn

follow the procedure again, and winscp still just disapears, when i click login :-(


edit, also tried pinging my n900 and got this reply

C:\Users\martyn>ping 192.168.2.2

Pinging 192.168.2.2 with 32 bytes of data:
Reply from 192.168.2.6: Destination host unreachable.
Reply from 192.168.2.6: Destination host unreachable.
Reply from 192.168.2.6: Destination host unreachable.
Reply from 192.168.2.6: Destination host unreachable.

Ping statistics for 192.168.2.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss)
I was having the same problem, where winscp just shut down at every login attempt. I opened TCP 22 port in windows firewall, and then whilst logging in to winscp, chose save instead of login. It saved the connection to user@192.168.2.4 and then connected straight up with no more problems..
 

The Following User Says Thank You to famdango For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 12:25.