updated ssh script to include range step