• Post Reply Bookmark Topic Watch Topic
  • New Topic

SSH Java session  RSS feed

 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to setup a secure SSH connection to a Linux machine so that I can use the session's Java and javac.
I already ran the ssh-keygen -t ras1 and typed in a password. What else do I need to do in order to connect to this session?
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Command-line wise it's:
ssh -l <userid> <target_machine>
[ December 05, 2002: Message edited by: Michael Ernest ]
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yep, that is how to connect. However, I need to know how to set up the server side of the sshd in order for it to accept connections from a user.
 
Lewin Chan
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
/etc/ssh/ssh_config, /etc/ssh/sshd_config
check the files to see if your settings are correct. It may not be in /etc/ssh but I imagine that you will find some kind of ssh_host_key.pub etc files in there. also
/etc/rc{runlevel}.d/Sxxsshd will probably exist (e.g. /etc/rc5.d/S55sshd). A symbolic link to the the ssh startup script.
Usually SSH is already enabled by default, if it isn't then you can just create a symlink to the startup script (e.g. /etc/rc.d/init.d/sshd) in the format described above for the runlevel you usually boot in.
netstat -apn to see if something is listening on port 22.
ssh user@machine can be used instead of ssh -l user if you like.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!