Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am using a computer remotely to which I also have root access. This computer is connected to the internet, but I want to do ssh access, etc. Currently I am using TeamViewer to connect to it.

I tried this article and I think, this one is same as this SO post. I also saw few posts on Super User, but I still could not get the answer.

Solutions required disconnecting from the internet connection and even after that, I could not succeed. Next time, the internet would not start and I'd have to undo the changes.

Is there a way to accomplish Static IP, without discontinuing the current internet connection, if possible.

share|improve this question
add comment

1 Answer

From the question you posted on stack overflow i think you are talking about your local network, not about the internet.

there are multiple reasons:

  1. this issue is strongly related to the configuration of your router and i am pretty sure there are some router setups that disallow a user to choose his own IP.

  2. you have to stay in the same subnetwork as the router as well, for a subnetmask of 255.255.255.0 with a router on 192.168.1.0 you can only use adresses ranging from 192.168.1.1 to 192.168.1.254. (192.168.1.255 is the broadcast adress) a machine on 192.168.0.x would not be able to communicate with the router.

  3. if you are using dhcp (dynamic IP) in your local network your IP shouldn't change unless you are offline for a longer period of time or there are many different computers using the network (like on a campus network). maybe just find out your machines dynamic ip with ifconfig or if you are offline for long time set the lease time on the router to a higher value.

share|improve this answer
    
Thanks for your answer. My need is that, I want to use ssh instead of using teamviewer. The current IP is such that it does not allow remote ssh. Can you help in this regard. Also, let me know, if I need to post any router information here. –  user984260 Dec 25 '11 at 16:15
1  
first of all: is the ssh-daemon installed and started? i am not sure how to do this exactly under suse, but something like sudo /etc/init.d/sshd start should work. –  Baarn Dec 25 '11 at 16:22
    
Yes. I issued the command and it prints rsa/dsa key pair and says started ssh daemon. Can you direct from here on. –  user984260 Dec 26 '11 at 16:25
1  
you should now be able to log in to that computer using ssh user@hostname where hostname is either the networkname or the ip-adress and username is a local on that machine. you should also read a guide about sshd and how to configure it propperly. –  Baarn Dec 27 '11 at 14:29
    
Thanks. But still I am not able to ssh to that machine: it just waits forever. –  user984260 Dec 27 '11 at 19:04
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.